home *** CD-ROM | disk | FTP | other *** search
- on exitFrame me
- global levelScore, totalScore, playerData, playerInventory
- lifeBonus = 0
- repeat while playerInventory[1] >= 200
- playerInventory[1] = playerInventory[1] - 200
- lifeBonus = lifeBonus + 1
- end repeat
- lifeBonus = lifeBonus * 500
- playerScore = playerScore + levelScore + lifeBonus
- levelScore = 0
- member("Total Score Tally").text = string(playerScore)
- member("Life Bonus Tally").text = string(lifeBonus)
- repeat with whichDisp = 480 to 500
- sprite(whichDisp).locZ = 9999
- end repeat
- playSound("Win", 1)
- end
-