Forum rules - please read before posting.

Create more DistantHotspot to Hotspot condition

Hey,
I am creating a 2D adventure using your plugin, and I really need help. I need to make hotspots to be disabled (Not displayed, not interactable) when the player jumps (Jump made on my own using scripting), or when he is aiming (Also made on my own). Basically I have 2 booleans in a script: "jumping" and "aiming" and I want to disable all hotspots while they are true.

Thank you really much.
Wolf Flare

Hotspot detection method: Player vinicity
Motion controller: My own

Comments

  • edited December 2019

    A Hotspot can be disabled by invoking its TurnOff function. But you can instead just disable the Interaction system completely, so that Hotspots are ignored anyway, by calling:

    AC.KickStarter.stateHandler.SetInteractionSystem (false);
    

    And then calling it with "true" again afterwards to enable the Interaction system again when you're ready.

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.