Forum rules - please read before posting.

should not be able to click hotspot through sprite

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

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.

  • 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.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.