Defualt events and implementing a main menu

Hello, I’ve been working to implement a main menu for a game I’ve been working on and I was wondering if there are any default fired events such as game::getReady and/or if there is any default class that is running at the beginning of the game being launched. Thank you for your time.


The way you can make this work is by controlling the order of execution of your scripts. You can do that through the script priority dialog:

So you can have a script that runs first and triggers your main menu. A nice way to communicate between scripts is to fire events on the app that is passed inside the script definition. For example you could fire events from your UI like so:'game:start')

when the user presses a button to start the game or something like'game:credits')

etc. These are all just examples of events you could create (they don’t exist).