Scripts / Return to main menu after finish a level

Author
Message
Rafael Memmel
5
Years of Service
User Offline
Joined: 29th Oct 2018
Location:
Posted: 25th Nov 2018 15:37
How can I return to the main menu after finish one level?

Example:

PM
DVader
20
Years of Service
User Offline
Joined: 28th Jan 2004
Location:
Posted: 26th Nov 2018 03:55
Perhaps the question should be how do I return to the Game Guru Menu at all?

I have pondered this myself. I've not yet got to the point where it is needed, but I do have my own basic menu in Xmas Adventure and an exit button which does nothing as yet

You may be able to force this with a winzone set as large as the level you can traverse, but I have not really played with it much as yet.
SPECS: Ryzen 1700 CPU. Nvidia 970GTX. 16 Gig Memory. Win 10.
smallg
Community Leader
18
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 26th Nov 2018 11:06
The easiest method would probably be to remove all the players lives and kill him as that automatically forces the game to go to the main menu - though if you ever have a game over screen this becomes less ideal :p

The scripts for the menus are all available in the default files, perhaps you can call the main menu script manually, not actually tried it.
lua guide for GG
https://steamcommunity.com/sharedfiles/filedetails/?id=398177770
windows 10
i5 @4ghz, 8gb ram, AMD R9 200 series , directx 11
Rafael Memmel
5
Years of Service
User Offline
Joined: 29th Oct 2018
Location:
Posted: 28th Nov 2018 13:24
What is the syntax / function / command to call the main menu manually?
PM

Login to post a reply

Server time is: 2024-03-28 11:49:26
Your offset time is: 2024-03-28 11:49:26