PDA

View Full Version : Incrementing a score for a game


mathman
12-19-2007, 05:26 PM
How might we make our animation gamelike so if objects are hit, a score is incremented and displayed? I saw that I can create a variable such as "score" and I know from other programming that the typical way to increment score is "score = (Score+1)" but I don't know how to implement it nor show a score.

DickBaldwin
12-19-2007, 06:03 PM
How might we make our animation gamelike so if objects are hit, a score is incremented and displayed? I saw that I can create a variable such as "score" and I know from other programming that the typical way to increment score is "score = (Score+1)" but I don't know how to implement it nor show a score.

See "Learn to Program using Alice" at http://www.dickbaldwin.com/tocalice.htm

Dick Baldwin
Free Alice tutorials: http://www.dickbaldwin.com/tocalice.htm
Free programming tutorials: http://www.dickbaldwin.com/toc.htm