Forum Topic: Look at this!!!!

(15,161 views • 1,050 replies)

This topic is 36 pages long. [ 11528 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 ]

<< < > >>
None

AMonkeyinaBox

Reply To Post Reply & Quote

Posted at: 7/15/04 11:37 AM

AMonkeyinaBox LIGHT LEVEL 05

Sign-Up: 02/16/04

Posts: 47

I have some code for making the coin counter go up when the character hits it and that when it gets to 100 coins, it gives you a life. But it doesnt seem to be working. Can you help us out?

// checks whether sonic is touching a coin: if he is, +1 to the coin counter.
//you can do your own scripting for making the coin dissappear
// "coins" and "score" are both dynamic text boxes.
if(_root.sonic.hitTest(_root.coin)){
coins + 1;
score + 100;
}

// adds an extra life if coins go to 100
if (coins = ">99";) {then
lives + 1;
set(coins, 0)

}


All times are Eastern Standard Time (GMT -5) | Current Time: 11:57 AM

<< Back

This topic is 36 pages long. [ 11528 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 ]

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!