Page 1 of 1
Menu Question

Posted:
Sat Aug 29, 2009 4:11 pm
by rudyj
I am working on a game and I was wondering if I could get pointed in the right direction. When my game loads I would like it to check to see if a playername has been saved. I am assuming I would do this with savevars. If their is nothing in the file I would like a input sceen to come asking the player to enter one. Or if someone could point me to a tutorial on saving vars to a file and loading them that would be great also.
Re: Menu Question

Posted:
Sat Aug 29, 2009 5:04 pm
by zygoth
Saving and loading variables is pretty easy. When you create the variable in global code, make a name for the save group you want it to be in. Then use the saveVars; function to save all the variables from the selected group into a data file with the name you enter. Use the loadVars function to load all the variables from your selected group from your selected file. Note that you must have the same named groups and variables created in each file. The loadVars function sets all the variables in the group you select to the values stored in the file you load from.
Hope this helps
Zygo
Re: Menu Question

Posted:
Sat Aug 29, 2009 5:57 pm
by rudyj
Thanks! Any idea on how to create a Dialog Box? For input
Re: Menu Question

Posted:
Sat Aug 29, 2009 6:00 pm
by Hblade
Make a character, then click on "text", then clic on Text Input