
-----------------------------------
Morice
Tue Dec 20, 2005 9:57 pm

Need to reset Time for my game
-----------------------------------
ok heres the deal i making this racing game now that i know how to use whatdotcolor and i need some few tips. However i do i have some problems first which is really annoying time, i cant get it to reset after the first track, second i need some stats after each level, like lap 2 was made in 10 secs something like that and 3rdly an highscore (but i did seen some examples however i dont understant them cause i didnt get to use some of those codes....
hers the game(btw start with Menu.t)

-----------------------------------
Morice
Tue Dec 20, 2005 9:59 pm


-----------------------------------
ohh ya plz dont try to steal, i worked really hard for this.... thanks 
and btw this isnt for my class , im doing it for fun

-----------------------------------
do_pete
Wed Dec 21, 2005 11:46 am


-----------------------------------
Please put all your file into a zip file, it makes it easier for all us lazy people  :D

-----------------------------------
Albrecd
Wed Dec 21, 2005 12:47 pm


-----------------------------------
Instead of resetting the time, you could use Start Time - End Time = Total Time (this could be used for the laps too)

-----------------------------------
Morice
Wed Dec 21, 2005 9:16 pm


-----------------------------------
ok i figured out how to do the time reset thing, after many many tries, anyway now i need to know how to do the highscores, can somebody explain it to me step by step.... i did look around however i didnt find them very useful...
thanks

-----------------------------------
Martin
Wed Dec 21, 2005 9:34 pm


-----------------------------------
Have you learnt how to read and write to a file?

What you've have to do is just make a file called highscores.txt with name/score pairs that'll look like this:

Morice 357
Martin 300
Tony -16
...

Note that it'll be easy for someone to just edit the txt file with notepad, but don't worry about that for now.
