image-->
https://imgur.com/MaxFY94
Hi, in this scene there´s an insect walking across across an branch.
when he walks "under" the branches in front of the one it´s walking on i dont want the player to be able to click the hotspot that i have linked to the insect animation.
so how can i meke so that the insect can´t be clicked when he walks under the branch?
MalteMP
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Put another hotspot on top of the branch. Make sure this new hotspot is not linking to any actionlist.
Next in the Scene window uncheck the 2D view to go into 3D space and drag this new hotspot along the Z axis towards the camera a little bit. Click back to 2D view and you're done.
This new hotspot is now the top hotspot and click on it you will not trigger any hotspot below it.
Thank you!
@JackAnimated
This will work, but it's not because of the Hotspot - but the collider that it comes with.
Placing a 2D Collider (either a Box Collider 2D or Polygon Collider) on an empty GameObject, and placing that object on the Default layer, will achieve the same effect.
That's interesting to know, thanks Chris.