I need help with something I'm trying to do in a small pong like game

Godot Version

Godot version 4.3

Question

I am currently trying to make a small pong kind of game. I have the ball bouncing around the screen, but I am wanting the ball to stick to the bar and with the press of the space bar have the ball shoot off straight. Is someone able to help me with this?

Hey, you might want to split your problem into multipel, smaller and easier to solve problems.

Try making code that will output text in the console when the ball hits the bar. When that’s working, you can try to make it stop the ball. Then you can figure out how to make the ball stick to the bar etc etc, and then combine the solutions.

I hope this helps!