Making a score counter

Non-platform specific questions.

Making a score counter

Postby sundog » Wed Jan 07, 2004 12:49 am

Hey I'm new to game-editor and am having a little difficulty making a score counter. How do I make a score that will increase as time progresses (Say 100 points per second). I have a counter setup in my view, i just dont know what to do to get it to work. Thanks in advance.
sundog
 
Posts: 4
Joined: Wed Jan 07, 2004 12:46 am
Score: 0 Give a positive score

Postby makslane » Wed Jan 07, 2004 1:03 am

On "Create Actor" event add a "Create Timer" action.
Make a new time with 1000ms (Type: periodic, Repeat: forever)
Add this timer (Immediate Action)

Ok...

On "Timer" event, choose yout timer, and add a "Script Editor" action with a code like this:

scoreActor.textNumber = scoreActor.textNumber + 100;
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby sundog » Wed Jan 07, 2004 1:28 am

thanks for the quick reply. I tried that code, but the counter doesn't go any higher than 100..
sundog
 
Posts: 4
Joined: Wed Jan 07, 2004 12:46 am
Score: 0 Give a positive score

Postby makslane » Wed Jan 07, 2004 10:43 am

Can you send your .ged and data files?
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

Postby sundog » Wed Jan 07, 2004 11:50 pm

sure, where do u want me to send them to?
sundog
 
Posts: 4
Joined: Wed Jan 07, 2004 12:46 am
Score: 0 Give a positive score

Postby sundog » Thu Jan 08, 2004 12:02 am

YGM (i think)
my email went all haywire dont know if the attachment went through or not, let me know.
Thanks
sundog
 
Posts: 4
Joined: Wed Jan 07, 2004 12:46 am
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron