How do I fling the player

You are always setting the velocity.x to 100, which will move right if nothing collides. I assume removing this line will help immensely.


Make sure to format your code pastes

Make it easier for new users to format and preview code in their posts - #4 by gertkeno