Quote:
Originally Posted by Chris101b
I think he is asking how the shark can keep track of how many fish he has eaten. So that if it eats ten fish, the score at the top will say 10. I am not good at programming games, so I cant help you. But I thought that I would just clarify the question.
|
Just initialize a counter variable to zero and then increment it by one each time the shark eats a fish.
Then maybe let the shark burp and display the total fish eaten in a say bubble. (You can probably find a burp sound file on the web somewhere.)
See
http://www.dickbaldwin.com/alice/Alice0140.htm for information on how to program variables in Alice.
Dick Baldwin
Free Alice tutorials:
http://www.dickbaldwin.com/tocalice.htm
Free Scratch tutorials:
http://www.dickbaldwin.com/tocHomeSchool.htm
Free Java/C#, etc. tutorials:
http://www.dickbaldwin.com/toc.htm