new and have a question...

Game Editor comments and discussion.

new and have a question...

Postby grittmaster69 » Fri Apr 15, 2005 10:19 pm

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.
grittmaster69
 
Posts: 5
Joined: Fri Apr 15, 2005 10:15 pm
Score: 0 Give a positive score

Postby jazz_e_bob » Fri Apr 15, 2005 11:48 pm

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 */
}
Controlling complexity is the essence of computer programming.
User avatar
jazz_e_bob
 
Posts: 742
Joined: Tue Jul 01, 2003 9:38 pm
Location: Bloke from Cockatoo Creek Australia
Score: 14 Give a positive score

Postby grittmaster69 » Sat Apr 16, 2005 12:48 am

i wanna get it so i can click on a guy and it will kill one of his lives
grittmaster69
 
Posts: 5
Joined: Fri Apr 15, 2005 10:15 pm
Score: 0 Give a positive score

Postby Just4Fun » Sat Apr 16, 2005 2:12 am

Have you looked at GE's Help--> Game Stuff?
There are several demo tutorials that deal with making scores.
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 grittmaster69 » Sat Apr 16, 2005 2:21 am

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.
grittmaster69
 
Posts: 5
Joined: Fri Apr 15, 2005 10:15 pm
Score: 0 Give a positive score

Postby makslane » Sun Apr 17, 2005 6:52 pm

You can try this:

yourCounter = yourCounter - 1;
if(yourCounter <= 0)
{
ExitGame();
}
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest