Page 1 of 1

movement bug

PostPosted: Sun Sep 17, 2006 4:18 pm
by jcoggins
I am using the arrow keys on the keyboard to control movement with a if(CollisionFree("player",argument,argument) script statement to control movement (so 8 is up, 2 is down, 6 is right and 4 is left).

1. If multiple movement keys are pressed at the same time (for example, pressing the 2 and 6 keys similtaneously) the object will sometimes continue moving after the keys are depressed.

2. If the object continues moving into a wall or corner one the movement keys (the one opposite the direction it is moving in) sometimes no longer works until after I use the movement key facing the wall. At that point the opposite movement key functions.

Jason

PostPosted: Tue Sep 19, 2006 12:56 pm
by makslane
What action are you using to make the moves?

PostPosted: Wed Sep 20, 2006 1:21 am
by jcoggins
A key down event combined with a script editor action which contained the if(collision free) then move code.

Jason

PostPosted: Wed Sep 20, 2006 5:14 am
by makslane
I can't see why the actor keep moving after key up.
Can you send me this game?

PostPosted: Thu Sep 21, 2006 12:40 am
by jcoggins
I have sent you an email with the files attached.

Jason