Posted: Thu Oct 04, 2012 4:52 pm
Thanks guys,. I fixed the typo and made an icon. looks nice
I am trying to get highscore to save to the device, alas to no avail,.
Do I need to add some path info. to my filename?
I call Read in OnLoaded, and then do this in the OnStart of the game over AppState;
if (score>high) high=score; //update highscore
I was also thinking, it would be cool to be able to read some text from my website into the app, for things like "On sale till Friday; Only $0.50" or "New game available" etc. However I can not seem to get the WebOpen to read the file,. should that be working? or is just the in browser option working?? [ try http://iterationgames.com/news.txt ]
I am trying to get highscore to save to the device, alas to no avail,.
Do I need to add some path info. to my filename?
Code: Select all
ZZDC<?xml version="1.0" encoding="iso-8859-1" ?>
<File Name="ScoreFile" FileName="score.save" Encoding="1">
<OnRead>
<FileMoveData Property="fileHigh Value"/>
</OnRead>
<OnWrite>
<FileMoveData Property="high Value"/>
</OnWrite>
</File>
if (score>high) high=score; //update highscore
Code: Select all
ZZDC<?xml version="1.0" encoding="iso-8859-1" ?>
<Condition Expression="return high>fileHigh;">
<OnTrue>
<FileAction File="ScoreFile" Action="1"/>
</OnTrue>
</Condition>