how about:
FrameTime = CreateTimer(60)
;mainloop
while keyhit(1)=0
WaitTimer(FrameTime)
wend
shorter and simpler.
In the end both are bad, as they block the whole mainloop
Using timebased movement is far better
FrameTime = CreateTimer(60)
;mainloop
while keyhit(1)=0
WaitTimer(FrameTime)
wend
shorter and simpler.
In the end both are bad, as they block the whole mainloop
Using timebased movement is far better