Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
Making A Golf Game
Old
Dtaylor
Guest
 
Status:
Posts: n/a
Smile Making A Golf Game - 03-04-2007, 06:28 PM

Hey guys, I'm making a golf game for one of my classes here at school. I was wondering what function or property I can use to record how many strokes it takes to reach a hole?




Thanks,

Daniel Taylor
   
Reply With Quote
score keeping
Old
chuck
Guest
 
Status:
Posts: n/a
Default score keeping - 03-04-2007, 11:31 PM

Try setting up a number object property for the golfer or the golfball. Start the value at 0, then each time the user hits the ball, increment to value by 1.

Attached is a really simple world to demo this, with a rabbit that moves 1 meter each time the spacebar is pressed. The scorekeeping variable on the rabbit's properties tab is incremented by 1 each time this happens.
Attached Files
File Type: a2w simpleScoreKeeping.a2w (313.1 KB, 387 views)
   
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 ©2019, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.