Hi everyone!
I just have a real quick question about a little code i made.
Here is the code:
if(key_space == 1)
{
my.z += 10;
}
My question is, is there is a way so that when you press the space key once, it will run my.z += 10 just once, and not keep running. So basically you press the space key, and it only runs the code once and then you have to release the space key and hit it again for it to run the code again.
Thanks!