PDA

View Full Version : How to make a High Score


egondenstore
04-21-2007, 05:16 PM
I wonder how to make a high score. I'm making a small game in alice 2.0 as a projekt in school. I have never worked with programming before and I have no books or anything to help me.

In my game you're controlling an airplane, and when you have flewn it through ten balls, you have completed the game.

I want to have a high score in my game, where you type your name if you have top 5 time. I don't have a timer in my game either. Please help me

If you think my english is poor, I'm swedish (and young)

madden
04-21-2007, 06:55 PM
I have never worked with programming before and I have no books or anything to help me.



http://www.alice.org/community/showthread.php?p=2725#post2725

egondenstore
04-22-2007, 10:59 AM
Thanks

I don't have so much time before the game must be done, and I don't have access to internet at home so if anyone could tell me how to do just the high-score and the timer it would help me a lot. The rest of the game is already done.

I will read so much I can in the tutorial

If you think my english is poor, I'm swedish (and young)

DrJim
04-22-2007, 07:02 PM
I usually don't post code - but this gets asked so often :rolleyes: and the answer - though rather simple - is covered fairly far to the back of the Dunn, et al, text - that I decided to make an exception and post the very quick code for a basic timer, including an option for a user to enter his name.

The usual advice also applies - see Ch. 10 in Dunn, et al and also do a search of the forum on "timer". :)