Score Keeping
From RTCwiki
|
Topic Assignments
Complete the following tutorials to learn about Action Script Variables:
- Read about Action Script Assignment to understand variables.
- Learn how to Change the Values of Variables in Scuba Diver Tutorial.
- Adjust the hit area on the frog's tongue in the Fly Catcher Tutorial.
- Learn how to trace variables in "Go Rabbit, Go!" Tutorial.
Learn how to add a simple score functionality to your game.
Watch this clip to see how add score keeping/counting to your game with Dynamic and Static Flash text:
- There is a bit of code in this video that is not mentioned, and is too small to read. The entire script used is...
onClipEvent(enterFrame){
if(_root.char.hitTest(this)){
_root.money += 10;
unloadMovie(this);
}
}
The unloadMovie(this) is very important. Otherwise the coin will stay in place and every single frame that the char is over it, the score will increasing by 10.
Update the Wiki
- Upload the assets (.SWF and .FLA) you created to your Team page if you are working on a Team game, or to your "My Projects" page if you are working alone.
Update the Blog
- Write a Blog post about this topic, share your learning experience!
Related Links and Tutorials
- Browse the MyGLife.org Flash Tutorials list for more tutorials, information and links!
Search the Web for more information
Here are some search results on Flash ActionScript programming:
- Google results for "flash & score & tutorial".
- TeacherTube results for "flash"
- Ask.com results for "actionscript & score & tutorial".
