Page 1 of 1

Throwing stars.

PostPosted: Fri Feb 11, 2005 4:24 pm
by dab
i have a ninja tossing throwingstars.
i have a score that tells how many stars there is left.
but :!: i need him to only throw stars when tere is more than 0 on the score.

pleese help me :!: :!:

PostPosted: Fri Feb 11, 2005 4:41 pm
by Just4Fun
It sounds like you need to create a variable to keep track of your "score" Actor's value.

Say that you have 5 stars. Your script might look something like this:

int starCount=5; //define your variable

starCount=starCount - 1; //decrement your variable

if (starCount<=0)
{
blah, blah, blah
} //end if

PostPosted: Sat Feb 12, 2005 3:18 pm
by dab
It is not working :cry: