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>