Game Save

This forum is meant for requesting technical support or reporting bugs.

Moderators: time-killer-games, Vengeance66, Candle, reneuend, GM-Support

Game Save

Postby GORDON » Thu Feb 11, 2010 3:15 pm

On most of my frames I have a "EXIT TO MENU" hotspot. On one click is it possible to have the "Action.PopupSaveGame" come up first then go automatically to my "MENU" This would allow the player the chance to "save" the game before getting to the "MENU"
GORDON
Advanced Member
 
Posts: 154
Joined: Mon Apr 30, 2007 1:36 am
Location: Canada

Postby Lyberodoggy » Thu Feb 11, 2010 4:07 pm

Yep. The simplest way is this:

Code: Select all
Action.PopupSaveGame
createtimedevent 0.1, "GoToFrame ""MENU"""


the more complex way allows asking the user if they want to save their game prior to exiting
Code: Select all
answer=MsgBox("Do you wish to save the game?",vbyesno)
If answer=vbyes Then Action.PopupSaveGame
CreateTimedEvent 0.1, "GoToFrame ""MENU"""
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens

MENU

Postby GORDON » Thu Feb 11, 2010 5:01 pm

Thanks Lyberodoggy! You've been a great help & it's really appreciated.
GORDON
Advanced Member
 
Posts: 154
Joined: Mon Apr 30, 2007 1:36 am
Location: Canada

Postby Lyberodoggy » Thu Feb 11, 2010 5:02 pm

Always glad to be of service :)
User avatar
Lyberodoggy
Administrator
 
Posts: 2526
Joined: Sat Feb 17, 2007 3:31 pm
Location: Athens


Return to Adventure Maker Technical Support and Bug Reports

Who is online

Users browsing this forum: No registered users and 0 guests