movement bug

Non-platform specific questions.

movement bug

Postby jcoggins » Sun Sep 17, 2006 4:18 pm

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
jcoggins
 
Posts: 18
Joined: Mon May 08, 2006 10:47 pm
Score: 0 Give a positive score

Postby makslane » Tue Sep 19, 2006 12:56 pm

What action are you using to make the moves?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jcoggins » Wed Sep 20, 2006 1:21 am

A key down event combined with a script editor action which contained the if(collision free) then move code.

Jason
jcoggins
 
Posts: 18
Joined: Mon May 08, 2006 10:47 pm
Score: 0 Give a positive score

Postby makslane » Wed Sep 20, 2006 5:14 am

I can't see why the actor keep moving after key up.
Can you send me this game?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby jcoggins » Thu Sep 21, 2006 12:40 am

I have sent you an email with the files attached.

Jason
jcoggins
 
Posts: 18
Joined: Mon May 08, 2006 10:47 pm
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest