Page 1 of 1

new and have a question...

PostPosted: Fri Apr 15, 2005 10:19 pm
by grittmaster69
i have a question, how do you make a textnumber goal?
EX. i want to have a cirtain amout of deaths until the game ends like on mario or somthin you only have 3 lives or w/e.

ty.

PostPosted: Fri Apr 15, 2005 11:48 pm
by jazz_e_bob
pseudocode follows

actor textGoal
on create actor
textNumber = 3

actor character
on destroy character
textGoal.textNumber = textGoal.textNumber -1;
{
if ( textGoal.textNumber == 0)
/* do game over stuff here */
}

PostPosted: Sat Apr 16, 2005 12:48 am
by grittmaster69
i wanna get it so i can click on a guy and it will kill one of his lives

PostPosted: Sat Apr 16, 2005 2:12 am
by Just4Fun
Have you looked at GE's Help--> Game Stuff?
There are several demo tutorials that deal with making scores.

PostPosted: Sat Apr 16, 2005 2:21 am
by grittmaster69
yes i have and there is nothing there that can help me
i need to know how to make it so it will cout down 3 lives and end the game at 0 but i dont kno how . i know how to make it count down but not to end the game at a cirtain point.

PostPosted: Sun Apr 17, 2005 6:52 pm
by makslane
You can try this:

yourCounter = yourCounter - 1;
if(yourCounter <= 0)
{
ExitGame();
}