solarus-games / solarus

This repository was moved to GitLab: https://gitlab.com/solarus-games/solarus
http://www.solarus-games.org
Other
712 stars 133 forks source link

straight_movement:set_max_distance() bug #1075

Open llamaizing opened 7 years ago

llamaizing commented 7 years ago

When using a straight movement, the calculation for distance the movement has traveled seems to always be from coordinates (0,0) when the distance of the movement should be calculated from whatever the coordinates of the object the movement is applied to were at the start of the movement.

Discussed here (with example code): http://forum.solarus-games.org/index.php/topic,1030.0.html