Page 1 of 1

Making a score counter

PostPosted: Wed Jan 07, 2004 12:49 am
by sundog
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.

PostPosted: Wed Jan 07, 2004 1:03 am
by makslane
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;

PostPosted: Wed Jan 07, 2004 1:28 am
by sundog
thanks for the quick reply. I tried that code, but the counter doesn't go any higher than 100..

PostPosted: Wed Jan 07, 2004 10:43 am
by makslane
Can you send your .ged and data files?

PostPosted: Wed Jan 07, 2004 11:50 pm
by sundog
sure, where do u want me to send them to?

PostPosted: Thu Jan 08, 2004 12:02 am
by sundog
YGM (i think)
my email went all haywire dont know if the attachment went through or not, let me know.
Thanks