Forum rules - please read before posting.

Double Click script working while cutscene is running

Hello, I have a problem with my double click script. My double click script runs a cutscene if the object it is attached to is double clicked, after some while I noticed that even while a cutscene is running, the object can be still clicked and retrigger the event to run from the start. How can I prevent it from being pressed during  cutscene like a normal hotspot? Thanks :)

Comments

  • Please see the "Custom scripting" chapter of the Manual.  You can check if AC is currently in gameplay mode with:

    if (KickStarter.stateHandler.IsInGameplay ())
    {
      // Will only run during gameplay
    }

  • oh, nice, thank you! :)
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.