I'm Thinking Of A Number....

Game Editor comments and discussion.

I'm Thinking Of A Number....

Postby Pete Holland Jr. » Thu Nov 02, 2006 1:16 am

Hey, everybody!

Another couple of questions, and I should be occupied enough for a while.... ;-)

So my plan is to have a level timer, and once the level is complete, add whatever is left on the timer to the score.

1) So I take it I create to text actors, put in a starting numeric value in each, and update them accordingly. I presume I would use a script that says, "score.textNumber = score.textNumber + timer.textNumber;" to make this happen, right?

2) The timer moves independently. So I create a timer, script a command to decrement the timer.textNumber, right?

3) How do I make the game read the timer so that, once it hits zero, my player character croaks?

4) Here's the biggie: how do I generate random numbers with Game Editor?

Dobre utka,
Pete Holland Jr.

I'm a peeker, I'm a poker, I'm a k'mallocer, I do my coding on a Sun....
Pete Holland Jr.
 
Posts: 19
Joined: Thu Aug 17, 2006 2:15 am
Score: 0 Give a positive score

Postby Fuzzy » Thu Nov 02, 2006 7:11 am

The Rand() function in the script editor will help you with random numbers.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest