How do i make it when you press two keys at the same time,it only does one thing

so wasd are my controls and i dont know how to make it so when two of the buttons are pressed, it only does the function of the button that was pressed first insted of going diagnal.

you can use the “when key pressed” event for each key, and set a variable that tells which direction the player should move under each event.

thanks!

can you please tell me how to do that

[scratchblocks]
if <<key [ v] pressed?> and <key [ v] pressed?>>::control
[/scratchblocks]

thanks

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.