Alice Community  

Go Back   Alice Community > Educators > Teaching with Alice

Reply
 
Thread Tools Display Modes
Incrementing a score for a game
Old
mathman
Guest
 
Status:
Posts: n/a
Default Incrementing a score for a game - 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.
   
Reply With Quote
Old
DickBaldwin
Guest
 
Status:
Posts: n/a
Default 12-19-2007, 06:03 PM

Quote:
Originally Posted by mathman View Post
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
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2017, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.