How to fix ball ghosting problem?

I just made a simple pong game in 20 minutes, how do I fix the ball ghosting through the player?

3 Likes

It’s not ghosting at all though

2 Likes

When it gets to a fast speed it goes through the paddle, sometimes.

2 Likes

then it must have broken the paddle

1 Like

ghosting is caused when in a single frame a object pierces through something because of speed.

2 Likes

I know.

1 Like

Slow down the ball, or make the ball bigger, or make the player collision shape bigger.

5 Likes

How does one go about changing the collision shape?

Cries in working on my Pong game for almost a month

The collision shape type (circle, rect, etc) is set in the “physics” section of the object’s settings panel. The size/area of the collision shape is determined by the sprite itself, it enlarges to contain all pixels. If you make the sprite itself larger, then the collision shape will expand around it.

Ohhhh ok, thank you! I’ve been struggling with this exact same issue for a little while

Movement is done through position, so if position movement is bigger than it can detect a collision, it can pass it. I suggest making the paddle hitbox bigger tbh

2 Likes