Currently Im using this set of code to save scores:
var score:Number = score;
score=0;
timeInt=setInterval(countUp,15);
function countUp(){
score ++;
}
function savegame (){
_root.pos = sharedobject.getLocal("location");
_root.pos.data.score = _root.score;
}
As you can see, its time based, However, I can’t figure out a way to make it such that if the score for the level is lower than the saved score, then the save function happens. Any ideas?
EDIT: Problem solved. Thanks for the help BigCheese but someone already helped me with it.
EDIT2: Won’t work. =/