PDA

View Full Version : Making A Golf Game


Dtaylor
03-04-2007, 07: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

chuck
03-05-2007, 12:31 AM
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.