Throwing stars.

Talk about making games.

Throwing stars.

Postby dab » Fri Feb 11, 2005 4:24 pm

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 :!: :!:
mum destroyed my computer by deleting files in sysrtem32!
dab
 
Posts: 8
Joined: Sun Feb 06, 2005 10:12 am
Score: 0 Give a positive score

Postby Just4Fun » Fri Feb 11, 2005 4:41 pm

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
I've learned that I still have a lot to learn.

** Makslane == Genious **
Just4Fun
 
Posts: 524
Joined: Tue Jul 01, 2003 5:19 am
Location: USA: Washington State; West Coast
Score: 6 Give a positive score

Postby dab » Sat Feb 12, 2005 3:18 pm

It is not working :cry:
mum destroyed my computer by deleting files in sysrtem32!
dab
 
Posts: 8
Joined: Sun Feb 06, 2005 10:12 am
Score: 0 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron