First time ever coding a game (or coding in general), and I've been learning lots. I've been trying to get a ball to move towards the coordinates where my mouse has clicked. I don't really quite understand all the vector things yet, so I'm having trouble with what's happening here.
if event.is_pressed(): # Mouse click coordinates
velocity.x = event.position.x - global_position.x
velocity.y = event.position.y - global_position.y
So far, the event.position gets the coordinates where my mouse presses. Yay!
The ball goes in the right direction, but at an insane speed. Any tips? Thank you!