Forum rules - please read before posting.

Turn on menu via a variable

edited November 2017 in Technical Q&A
Hi everybody

Is it possible to turn on/off an AC menu (not element) via a variable? 

I have my character sneaking in the dark and a boolean true when sneaking. Would like a menu to appear to indicate my character is sneaking. Would ideally like to use an AC menu (not Unity UI) so I can use the nifty built-in transitions. 

Thanks! 


Comments

  • You can define an "On Variable change" Cutscene in your Scene Manager, which will run whenever the Variable: Set Action is used to change a variable's value.  A Menu's state can be changed with the Menu: Change state Action.

    Alternatively, you can make a background Cutscene that checks the variable's value every, say, 1 second, and changes the Menu that way.  Background cutscenes are made by setting their When running property to Run In Background.
  • Thanks, I have tried On Variable Change, but the menu does not open using the transitions (pan left) when the boolean is true. 

    Never mind, I'll use Unity UI, as it gives me more control anyway. 

    Thanks very much for your help. 


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.