So I'm making a 2d game using sprites. I want many keys to be pressed at once. EG: W for walking, D for rotating, And R for reload all at the same time, But as of right now, Only 1 will be executed at a time. here's my code for the movements.
_Player:
IF scancode()=17 then move sprite 1, speed
IF scancode()=31 then move sprite 1, speed-(speed*2)
IF scancode()=32 then inc PlayerRotation#
IF scancode()=30 then dec PlayerRotation#
Rotate sprite 1, PlayerRotation#
Return
The above code is 1 of many sub routines I have implemented, just don't wanna paste all my code here
So yes, I'm sure this is an easy fix (I was just thinking of a fix using the "while" command, but I have no time to test this right now).
Any help is appreciated! Thanks!