Computer Science Canada How to keep a score form procedure to procedure |
Author: | NeutronX [ Sun Nov 11, 2007 3:03 pm ] |
Post subject: | How to keep a score form procedure to procedure |
Once again I need help on my racing game. I am almost done but I need help on the scoring. I have 3 races and you get 1 point for winning each race. Each race is in a separate procedure. I need help on keeping the score from one procedure and taking it to the next. For example if player 1 wins the first race they get 1 point. If they win the secord race (separate procedure) I want the score to be added plus 1 but I dont know how to keep that one point from the first race. Can someone plz help me with this? THX! |
Author: | HeavenAgain [ Sun Nov 11, 2007 4:05 pm ] |
Post subject: | RE:How to keep a score form procedure to procedure |
use a variable to keep the score, pass it to parameter and see who gets the socre,and/or return back the value of this score variable(if turing have one... forgot) |