The Dink Network

Reply to Re: Malachi the Jerk

If you don't have an account, just leave the password field blank.
Username:
Password:
Subject:
Antispam: Enter Dink Smallwood's last name (surname) below.
Formatting: :) :( ;( :P ;) :D >( : :s :O evil cat blood
Bold font Italic font hyperlink Code tags
Message:
 
 
November 5th 2013, 12:00 PM
peasantm.gif
shevek
Peasant They/Them Netherlands
Never be afraid to ask, but don't demand an answer 
Note that no matter what you do, move and move_stop are not pixel-precise. I think the engine sets the velocity of the sprite and periodically moves it. It also periodically checks if the move is done. However those two clocks are independent of each other, and on systems which need a lot of cpu time for drawing things, the movement may be different from systems which are more powerful. Which means that testing on one machine doesn't prove that it will work everywhere.

The conclusion should be to never rely on move[_stop] being exact, and if you need an exact position, always use sp_x/sp_y to make sure your assumption is correct.

Similarly, always use move[_stop] (..,..,..,1), unless you have set up a way to handle the sprite not reaching the position: given the inexact nature of movements, enabling hardness checks in a move command is asking for trouble.

I apologize to Cocomonkey for partially hijacking his thread

Oh right, that was what this thread was about... Feel free to steal it back, Cocomonkey.