So basically we need:
if ( abs(velocity.x) > abs(velocity.y) ) { x = round(position.x); y = round(position.y + (x - position.x) * velocity.y / velocity.x); } else { y = round(position.y); x = round(position.x + (y - position.y) * velocity.x / velocity.y); }[/code:1yfaqumf] In an interpolation expression.
Develop games in your browser. Powerful, performant & highly capable.
Ruskul newt
Nice! thanks for finding that article. That's awesome and works really well.
I tried it out in the original capx, you can see my version with the solution above here: http://www.rieperts.com/games/forum/TestsJitterDemonstration.capx