android
Prev Previous Post   Next Post Next
  #27  
Old 08-06-2010, 03:27 PM
Habhome's Avatar
Habhome Habhome is offline
Moderator
 
Join Date: Jan 2010
Location: Sweden
Posts: 1,091
Default

Quote:
Originally Posted by Brett_val View Post
I find it easier to have the save/stats file in this format:
Code:
highscore=0
cash=0
sounds=0
That way, you can load it by just doing dofile("save.lua"). That will read the file and execute the commands in it.

You just have to save the stats carefully, like this:
Code:
sSave:write("highscore=",highscore,"\n","cash=",cash,"\n","sounds=",sounds)
That's another way, which I'm seriously considering for my newest creation. I think it may be easier to use.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine
Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it!
Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it.
Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^
Reply With Quote

 

Tags
apps, creative, tutorials, x-fi2, zen

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 12:51 PM.