I just made a simple pong game in 20 minutes, how do I fix the ball ghosting through the player?
It’s not ghosting at all though
When it gets to a fast speed it goes through the paddle, sometimes.
then it must have broken the paddle
ghosting is caused when in a single frame a object pierces through something because of speed.
Slow down the ball, or make the ball bigger, or make the player collision shape bigger.
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