I do not understand why this isn't working

I tried tweaking Awc’s coding for the Platformer Engine to make it so that instead of the player moving instead everything moves around it, resulting in a camera that follows the player, but I have one problem (you need the file to understand what I’m talking about)
T4Sproject8-7-2021_21-15-27.wick (347.0 KB)
I don’t understand why the platform is going up

so i can’t be 100% sure, but i think this is the problem. sadly it has to do with my engine and not your code, so it might mean redoing the entire engine.

so when the player is sitting on the ground, the player for some reason still has a downward “velocity” of g (whatever the gravity may be). that velocity makes the ground go up.

Ok that’s what I thought. Thanks

That is exactly what I did here…

Oh thanks!