Everything is working fine in the game exept one thing.
After a new round if the user was holding down a button, he cant move in that direction. If he lets go then he starts going the opposit direction he was holding. How would i fix this?
You need to zero the yVelocity when a new game starts.
Although that's more of a workaround than a solution. You're better off not using events, and instead just checking the realtime status of the key to determine whether or not it's pressed.