Forum rules - please read before posting.

Hotspot double click

It would help to create another mode for hotspot double click.
Single click -> Walk -> Script
Double click -> Script

i.e. teleport to destination on double click.

Comments

  • If a Hotspot's Double-clicking field is set to Triggers Interaction Instantly, it'll cause the Player character to be teleported to the Hotspot.

    To customise double-click behaviour further, you can hook a custom script into the OnDoubleClickHotspot event, i.e.:

    void OnEnable() => AC.EventManager.OnDoubleClickHotspot += OnDoubleClickHotspot;
    void OnDisable() => AC.EventManager.OnDoubleClickHotspot += OnDoubleClickHotspot;
    
    void OnDoubleClickHotspot(AC.Hotspot hotspot, AC.Button button)
    {
        // Custom double-click behaviour here
    }
    
  • thanks a lot, I hadn't seen that double click option in hotspot.

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.