I have tried everything and i just cant fix this sprite overlap bug

ive been trying to fix this in my game jam game for the past 3 days to no avail

basically. theres a hitbox for the detection and it moves when the guard turns via game update interval. and if your uncloaked and you overlap with the detection hitbox its supposed to alert the guard but somehow someway whenever you overlap with the hitbox nothing happens but if you say jump out of the hitbox it somehow works?

1 Like

Yeah, this is an issue with the actual sprite overlaps code not working. Just asked @jwunderl about it on stream. He says he thought it got fixed but apparently not, and it will be fixed in the next release. For now, you can make the sight beam wider. It seems that the sprite overlaps only work if one of the objects contains a corner of the other object, so at long as the sight beam is taller than the player this will always be the case when they are overlapping.