Quote:
Originally posted by nymyth
Da'Nacho put up the files, lets see what u got and see if together we cannot solve this slight problem....
Peace
|
OK, here is the .fla since I've worked on it...
The appropriate frames to insert the code needed for vbProArcade seem to be 51 and 52.
Frame 51 is the 'You're out of frogs, play again?' and 52 is 'You're ready for Level 2, but I didn't make a level 2... play again?'
I realize that since it's only a 1 level game the need for saving the scores isn't very high, but I'm mainly trying to do it just for the experience of doing it, you know?
Anyway I have the following code in there before the stop(); in both frames:
PHP Code:
// set up vars to return
vpaver = "100B2";
froggerscore = score;
action = "gameover";
game = gamename;
score_loc = location+"/proarcade.php";
// this needs to match the Admin CP value
// and should be between 0 and 31
hashoffset = 5;
// do security shuffle to return newhash
subhash1 = gamehash.substr(0, hashoffset);
subhash2 = gamehash.substr(hashoffset);
newhash = subhash2.concat(subhash1);
// redirect back to vbProArcade
getURL (score_loc, "_self", "POST");
The game hands off to vbProArcade like it should, but it doesn't seem to be passing a score value whatsoever (vbProArcade returns to a blank scoreboard).
Any idears?