SuperTux / supertux

SuperTux source code
https://supertux.org
GNU General Public License v3.0
2.49k stars 471 forks source link

Setting Tux's position via scripting resets his velocity #3006

Closed weluvgoatz closed 1 month ago

weluvgoatz commented 1 month ago

If you set Tux's position via scripting, he will reset his velocity to (0,0). This is absolutely unintentional behavior as you can set that manually yourself. This breaks a level I was working on in which the velocity is retained via scripting, because now, Tux's velocity gets reset every time a script moves him. I'm assuming this has something to do with Simple Squirrel. Also, what is worse is that even if you set the velocity yourself via scripts, it still always resets to (0,0) whenever Tux is moved with scripting. Please fix this ASAP!!!!!