Hi I am having trouble with a golf game I am creating where after one stroke there is no option to take another and simply takes you to back of the game.
Here is a screen dump of my code, any help would be greatly appreciated
http://img864.imageshack.us/i/golfcode.png/
Offline
Thanks for the quick response :-)
I thought this but when i remove the stop script action the only way to play another stroke is to start the script again. A white bar appears on the first stroke for the user to enter 1-4 but after a stroke has been made this bar doesnt appear again.
Offline
Why not modify it a bit? Remove the entire c block containing the stop script block (including the code inside), put a forever c block around the entire script, and change the other forever block to "repeat until distance < 1". That should make your script repeat the way you want it to.
Offline
Thanks for your help its much appreciated, Im not sure if I have done what you said so Ive enclosed another screen dump. Now when I enter 1-4 the ball just goes instantly back to the balls starting point on the hole.
http://img641.imageshack.us/i/golf2nw.png/
Offline
I now have on final problem I was wondering if anyone could help.
My golf game consists of three holes, when the second hole is completed it sometimes forces the player to replay that hole. Is this bad coding or buggy software?
Also When I complete the last hole it wont take me to the final well done screen despite the the code is identical to what I used to take the player to the next hole.
Here are two screenshots, one of the final holes code, its identical to the fist two with the exception "End of Hole Three" rather than 1 or 2.
The second screen is my stage script to take the player to the next hole and the well done screen. The game is complete when this is done and its really bugging me haha first attempt so its nothing too complex.
http://img703.imageshack.us/i/golf1t.png/
http://img98.imageshack.us/i/golf2.png/
Offline