Hi.
Trying something simple but i must be misunderstanding something.
I have a global variable i want to be set to 1 when the player is pressing down on the direction keys.
If they are not pressing the keys i want to variable to be set to 0.
Global Variable ("movekeys")
I tried the following.
If key (A) or (D) is down set variable to 1
I t hen inverted the If key (A) or (D) is down set variable to 0
However the variable stays on 0.
I then tried if key is pressed set variable to 1
If key is released set variable to 0
However the last option is not viable because if you switch between keys to quickly then the variable gets stuck on 0. As you pressed the key and released it and pressed it all in 0 seconds.