I've got an issue with my autorunner game which i'm struggle so fix.
What happens is when my player falls of a platform (without jumping), it moves gradually to the left of the screen. When the player jumps, it's fine, its only when you let the player fall of the platform that this happens.
It's a slight movement but i have double jump so if you just fall of the platform and then jump and do it continuously, you'll see the player getting closer and closer to the left of the screen.
I've tried changing the platform behaviours such as gravity etc but haven't found a way to fix this. Can someone help me with this?