Advanced movement code for a platformer | ScratchStats