Hey-
I am having a problem with my program, shown simplified below:
I have tried the code with both KeyHit and KeyDown
When I run the above code, I get
0,0
0,0
0,0
ad infinitum.
How can I fix this?
I am having a problem with my program, shown simplified below:
Global runspeed = 10 Global xVel = 0 Global yVel = 0 While Not KeyHit(1) If KeyDown(17) And xVel < runSpeed Then xVel = xVel+1 If KeyDown(31) And xVel > (0-runSpeed) Then xVel = xVel-1 If KeyDown(30) And yVel > (0-runSpeed) Then yVel = yVel-1 If KeyDown(32) And yVel < runSpeed Then yVel = yVel+1 Print xVel+","+yVel Delay 1000 Wend
I have tried the code with both KeyHit and KeyDown
When I run the above code, I get
0,0
0,0
0,0
ad infinitum.
How can I fix this?