Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
i have a cursor that i move around the screen with the keys but its too fast
when i press "p" it shoots half way across the screen, how do i make it move 1 square every half a second
Posts: 615
Threads: 49
Joined: Feb 2009
Reputation:
2
Just enhance the "resolution" of calculation, lets say, by 8 (then divide the coordinate by 8 to get he correct position). Also using PAUSE 1 in loops to slow it down, is a passibility.
Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
thanks that slowed it down,
I want the cursor to move continuously if the key is held down for 1.5 seconds, how do I measure that time?
Posts: 282
Threads: 48
Joined: Feb 2011
Reputation:
0
could I have an example please?
so is there a system timer, that can be read from and written to?