Sprite Overlap Not Working

Hello, pulled up a version of Flappy Bird I developed back in 2020ish. My overlap between PLAYER and ENEMY works just fine. But now the overlap between PLAYER and SCORING LINE never seems to fire. Has something changed since then?

Thanks!

1 Like

hmm, i think this might be caused by floating point errors when the width of a sprite is 1 pixel. if you change the scoring line to be 2 pixels wide, it should fix the issue

2 Likes

That did the trick. Appreciate the pointer. Wonder what changed in the last 4ish years to introduce the silent failure.

All the best

1 Like

@MrHM we’ve rewritten the physics engine a couple times in order to improve performance on hardware… our physics engine now uses fixed point arithmetic for all the math which improves perf a lot but might have broken this scenario

Yes, seems broken for such a fundamental building block of games. Had to widen the sprite to 4 pixels to get reliable triggering of the overlap. 2 pixels wide resulting in triggering about 80% of the time. Hopefully fixable. Thanks again for the help.