I use the following loop for timing the animation of a sprite:
if millisecs()>oldms+50
oldms=millisecs()
frame=frame+1
end if
and so on.
Somehow, the animation is correct on Mac, but veeeery slow on Win.
It's not that the game runs to slow, it's just this animation that runs slow.
Isn't millisecs() safe or the same on different systems?
if millisecs()>oldms+50
oldms=millisecs()
frame=frame+1
end if
and so on.
Somehow, the animation is correct on Mac, but veeeery slow on Win.
It's not that the game runs to slow, it's just this animation that runs slow.
Isn't millisecs() safe or the same on different systems?