WohlSoft / Moondust-Project

Moondust Project by Wohlstand
https://wohlsoft.ru/projects/Moondust/
GNU General Public License v3.0
250 stars 39 forks source link

Character retains vertical velocity for 1-2 frames when moving platform he is riding changes direction. #213

Open Alucard648 opened 7 years ago

Alucard648 commented 7 years ago

Just download the test level and see, if small Mario can ride the moving platform without getting impaled on ceiling spikes. https://yadi.sk/d/HGvxO0OP3JhAAQ Test in both PGE engine and SMBX.

Wohlstand commented 7 years ago

The reason of that is inaccurate motion which causes extra offset after point when platform must turn to another direction, and second reason is that when platform changes speed from moving up to move down (or just get slower speed), the standing objects are still move up, and as result, die on ceiling spikes. Fix of first reason is rework the platform algorithm by itself. Second reason must is improvment of speed-adding stack to don't shake/bump standing objects on speed changes of lower body.