I have 4 sprites connected in a hierarchy:
Enemy, Enemy Hand with Bomb, Enemy Bomb, and Enemy Hit Area.
When the hero overlaps the Enemy Hit Area:
- The enemy drops a bomb.
- The enemy's hand with the bomb gets hidden.
- Once the bomb is destroyed, the hand appears again.
Problem:
I have 3 instance variables in the sprite "Enemy Hit Area" to store the UIDs of:
- The Enemy
- The Enemy Hand with Bomb
- The Enemy Bomb
How do I correctly save these UIDs so they only reference the specific enemy and its parts associated with the Enemy Hit Area that the hero is currently overlapping?
Right now, I'm using "Last created", but that causes only the last created enemy to drop the bomb, even if the hero overlaps a different one.
Error Video: webmshare.com/play/RL1nv
Events: