User needs to move mouse to fire bullet

When the user hits q to fire a bullet, there is no smooth motion. They need to move the mouse around the screen in order for the bullet to travel. I’ve tried looking around StackOverflow, youtube, reorganizing the code. I want the user to hit q and the bullet should fire with a parabola shape smoothly. Answer You’ve to do the update of the position in the main loop rather than the event loop. Note, the event loop is executed only when an event occurs. This means it is executed one time, when the button is pressed and a second