Key Down event in Actors Draw
Posted: Fri Jun 17, 2011 10:19 am
Is there a way to script the keydown events. I've searched the forums but can find anything that I understand does this.
What I want to say is
If (keydown = leftarrow ) then xpeed = -2;
if (keydown == rightarrow) then xpeed = +2;
I also want to say if these 2 keys are not pressed xspeed = 0;
but..... only if the player is not jumping.
I think I know how to code all this other than the capturing of the key presses
What I want to say is
If (keydown = leftarrow ) then xpeed = -2;
if (keydown == rightarrow) then xpeed = +2;
I also want to say if these 2 keys are not pressed xspeed = 0;
but..... only if the player is not jumping.
I think I know how to code all this other than the capturing of the key presses