I noticed that a ramble a bit in the last thread, and figured that some people are probably intimidated by the length of it and thus choose not to read it. So I am offering a simplified version of how to create a score variable. Note: if you have trouble, refer to the lengthy version!
1.)Make a new text box object on a new layer by itself.
2.)Set text type to “dynamic”.
3.)Set variable to scorer.score
4.)Right-click > convert to symbol > choose type “Movie Clip” and name it “score”.
5.)Set the instance name of the new symbol to “scorer”.
6.)In the “scorer” action panel, type :
_root.scorer.score+=2 (whatever # you like)
8.) Add this to any of the actions panels that you want to add points to the score.
Ex) keyframes, movie-clips, buttons
This is an example of how to add points to the score after you press a button. Place this in the action panel of a button (be sure the button symbol is on the stage and selected, NOT the frame) :
-= Double Post =-
If you are interested, please test this tutorial and let me know how it goes. Thanks!