|
|
|
|
|
|
Posted: Sun Jan 06, 2008 8:36 pm
how do i get my objects to move when i press the arrow key ande stop when i release it
*I messed with the friction but that doesnt work
|
 |
 |
|
|
|
|
|
|
|
|
Posted: Sun Jan 06, 2008 11:40 pm
Put a "Move (either Fixed or Free)" with speed x in a Key Press event... then put another "Move (either Fixed or Free)" with speed 0 in a Key Release event (for the same key obviosly)... That's one way of doing it...
|
 |
 |
|
|
|
|
|
|
|
|
|
|
Posted: Mon Jan 07, 2008 1:10 pm
|
|
|
|
|
|
|
Posted: Mon Aug 04, 2008 5:43 pm
My favorite way is to have a jump to pos. (a small amount in x/y direction.) in a keyboard event (not key press.)
Using a move action with a stop moving at key release requires more events, and you have to do even more programming to do diagonal movement, and, the keys seem to "stick."
Not so with a jump to pos.
Oh, and make sure it's relative
|
 |
 |
|
|
|
|
|
|
|
 |
|
|
|
|
|