How to Create a Main Menu with a "New Game" Button in Visionaire Studio

  • #1, by shiran-hazanThursday, 17. July, 07:04 2 days ago
    Hi everyone,

    I'm new to Visionaire Studio and just getting started with building my first point-and-click adventure game. I'm trying to create a main menu screen with a background image and a "New Game" button that starts the game when clicked.

    So far, I have added the background image as a scene, and I added a scene object to serve as the clickable button. However, I’m not sure how to properly configure it to start the game.

    Could someone please explain step-by-step how to:

    Set up a main menu scene.

    Make a scene object function as a "New Game" button.

    Start the first scene of the game from this button.

    I’m not using interfaces, just working with a single image as the menu background and interactive scene objects as buttons.

    Any help or tutorial links would be really appreciated.
    Thanks in advance!


    Newbie

    1 Posts


  • #2, by esmeraldaThursday, 17. July, 12:49 Yesterday
    On the wiki is a template for a menu I did some time ago: https://wiki.visionaire-tracker.net/wiki/Templates

    In that template I used the method replaceGame() to start a new game.

    What I do when not using that method is using an autosave to reset everything when starting a new game during a session.
    (see image1)
    on clicking on the new game button, I switch to a black scene. (show scene - not change scene)
    in the "beginning of the scene" action I of that black scene check if the game was already running by checking a condition.
    If the condition is true, that means in my case that the game was freshly launched. Then I execute an autosave and set the conditon to false.
    If the condition is false, I load the autosave. (that will lead to the engine loading that scene again and checking the query again, now with the condition state "true")
    After the query I call an action.
    In this action is everything I want to do at the start of the game. 
       (for example: 
    - set character to scene (if you haven't done so in the character properties)
    - change to the scene of the character (or use the "change scene" action part)
    ...  send the character somewhere, display a text)
    (image 2)



    Key Killer

    541 Posts

Write post