Forum rules - please read before posting.

Hide Menu and Inventory for Video Sequence

Hi! I have a video sequence in my game, anyhow, not sure how during that period stop showing Menu and Inventory
Thanks for the support

Comments

  • How are you playing the video? From the Video Player componen's Play On Awake checkbox, or with AC's Engine: Play movie clip? Action?

    If you use the latter, you can check its Wait until finish? option, which - if the ActionList is set to Block Gameplay - will cause the game to be in "cutscene" mode while it plays. This will prevent gameplay menus from showing during this time.

  • Thanks for the answers.
    I actually create a script to manage a Video Player, and it reproduces more that one one video (sometimes, 3 videos, running one before the other)

    So, if there is an action that can hide Menu and Inventory, i can manage it with my script

    I think switching to AC action will have the problem that "wait until finish" going to happen many times

    So, is there a way to hide Menu and Inventory?

  • You can lock a Menu to prevent it from showing when it normally would.

    With Actions, this can be done with the Menu: Change state Action.

    With code, you can do this with:

    AC.PlayerMenus.GetMenuWithName ("Inventory").TurnOff ();
    AC.PlayerMenus.GetMenuWithName ("Inventory").isLocked = true;
    
  • Thanks for this replay!
    Inventory was hide with that code >> Just in case set TurnOn and isLocked = false once finish the scene

    Will add that what i meant by menu was "InGame" menu
    so, adding "Inventory" and "InGame" as above did the trick

    Thanks a lot!

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.