Hey Colludium thanks so much for this fix! I think I may have found another bug though <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">
In my game I need to be able to make the player loop around the layout, and I do this by setting the player's X position manually to either the left of right of the layout (depending on where he leaves).
In the regular Platform behavior, when I do that the player keeps his momentum - when using Platform2 he stops for a brief moment before he continues on.
I've made an example so you can take a look! I also tried fixing it by saving the player's X velocity before he warps to the X position and applying to them, but it didn't work (it's also included in the example).
Here's the example:
https://1drv.ms/u/s!AuQM7MihYyx4jY8OhxyprtFgvQe9VQ
You can test it by holding the arrow keys until the player collides with the green bars. If you keep holding it long enough you'll notice the regular platform movement never loses it's momentum after setting the X position manually, while the Platform2 behavior lags behind (especially if you do it more than once).
Thanks for your time!