I'm trying to make a very simple flash game for my college project. The players will get 1 point each time they click on certain object. I've created 3 scenes and each of the scene has score value. I want to total up the score at Scene3. FYI, I use:
1st Action Script add this to the variables frame:
_root.total = 00;
2nd Action Script add this to each of the hit sections in the Action Script frame:
_root.total = Number (total) +1;
My question is, how to add up the scores from Scene 1,2 & 3? What script should I use? Thanks in advance
_root.total will contain that total. ie, variables are not local to scenes.
so, do you have any idea about the script that i should use?
if you use _root.total in each of your scenes, it will store a running sum. so, just use: