My homemade, very buggy platformer engine. The movementmode variable determines the type of horizontal movement used--0 uses linspeed and is linear, 1 and 2 use speed and exponents, using decay to slow the player down after stopping. Airdecay is use for 2 for a different slowing rate than with decay. Higher values of speed may cause wall clipping, the reccomended value is 0.3 Wallhop 1 enables, 0 disables
Scratch glitched a lot while I made this, there are lots of bugs :C also there were ghost blocks and weird stuff while i made so dont judge pls pls pls Negative values of gravity and linspeed not reccomended--the code glitches and I have no need to fix it, but it is kind of fun to mess with reversing controls (-linspeed)