Is there any way to fix my code or should I just start over?

So, I’m making this pong game (really, just attempting to improve upon grazer’s pong example) but the behavior for the ball has become INSANELY complex for no real reason, and I don’t know how to simplify it. The ball has become buggy and is losing speed and getting stuck on the paddles sometimes. Does anyone see a good way for me to fix this or should I just delete all the behaviors and try again?
A lot of the complexity stemmed from this issue, tbh

2 Likes

It seems to work fine for me. Maybe it’s just a bug? Other people would probably say the code needs some tweaking though.

2 Likes

Same. I would say to just turn on bounce, but I haven’t tried making a pong game so idk

1 Like

After experimenting a bit, I have found that the ball is occasionally (randomly) hitting the paddle (mainly the left paddle) and then not bouncing, but not colliding either, just staying stuck right to it at full speed until it finally goes around the paddle. What could be the cause of this?

2 Likes

I think it’s the physics combined with the behaviors. Some things just aren’t compatible.

2 Likes