Complicated movement with arrow keys
Posted: Fri Jan 28, 2011 7:34 am
Hey guys,
I want my player actor move only in 4 directions.
When I hold one key like the up key, player should move up.
But when I press another key (while I hold the up key), for example the left key, player should stop moving up and move left.
When I release left key player should move up again.
And I need this with every key with every key.
Ah and if 3 or 4 keys are pressed player should do nothing.
Thanks !
I want my player actor move only in 4 directions.
When I hold one key like the up key, player should move up.
But when I press another key (while I hold the up key), for example the left key, player should stop moving up and move left.
When I release left key player should move up again.
And I need this with every key with every key.
Ah and if 3 or 4 keys are pressed player should do nothing.
Thanks !