[Workaround Exists]Custom hitboxes and multiple instances

Here’s a bug that reminds me of another one I had with my Jukade game menu, because it’s affecting only the first instance of several identical elements.


(cursor is on the red dot)
I spawn eight times the same sprite. The sprite is large and has a small custom hitbox. With an event, I tween the sprite when the cursor is on it.
Problem: The first spawned instance gets tweened whenever the cursor is anywhere on the sprite, not just on its hitbox.
For the other instances, it works as expected, only tweening them when the cursor is on their hitbox.

Workaround for the bug: make a ghost sprite follow the cursor and check collision between that ghost sprite and the others.

2 Likes