i fixed everything, except global positioning and collisions (mainly x)... it works well without it, just like a normal platformer