Dear All helpers,
I would like to block the mouse event so that it doesn't allow the player to click the mouse to move his character anywhere in the game. Why i would like to block the mouse event is because i just want the player to use the arrow keys to move the characters ...Can anyone help???
Besides, The second question is I would like the character to stop moving down once it is blocked by something e.g :wall if the player continues to press the left arrow as see below, can anyone know how to do it?
(wall)
|
| <---How to make the character to be blocked by the wall if it continues
| to press the left arrow
| instead of moving down to the bottom (As the world warcraft once
| detects the character is blocked , it will make that character to
| move down to bottom by default)
|
I would like to block the mouse event so that it doesn't allow the player to click the mouse to move his character anywhere in the game. Why i would like to block the mouse event is because i just want the player to use the arrow keys to move the characters ...Can anyone help???
Besides, The second question is I would like the character to stop moving down once it is blocked by something e.g :wall if the player continues to press the left arrow as see below, can anyone know how to do it?
(wall)
|
| <---How to make the character to be blocked by the wall if it continues
| to press the left arrow
| instead of moving down to the bottom (As the world warcraft once
| detects the character is blocked , it will make that character to
| move down to bottom by default)
|