text for easter egg

Talk about making games.

text for easter egg

Postby The achievement » Wed Mar 08, 2006 3:45 am

how do i make a score or a variable on how many easter eggs i get in the game
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby DilloDude » Wed Mar 08, 2006 4:51 am

Create an actror 'EggMeter', and in actor control, click the 'text' button. Choose a font, and type '00' in the text field. Say OK. Move the actor to a position relative to the view (eg. top-left corner) and click the parent button and set parent to view. Now when the view moves, the counter will follow. Now add draw actor->script editor, and say textNumber=eggCount. Click the 'variables' button and create a global integer eggCount. Now, whenever eggCount is changed, the text will show the number. If you want, create another actor, parent it to the view and put an egg animation on it. Put it next to EggMeter to show what the number is for.
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score

Postby The achievement » Wed Mar 08, 2006 4:14 pm

Ya ill check that when i get home, im in school right now, but thank you for replying dillodude! :D
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby The achievement » Wed Mar 08, 2006 9:57 pm

i did everything you said, i dont know whats going on, i added the variable and did the font i did textnumber=eggCount. what does the eggcount do here? and i added +1 to the end of it and now whenever i start the game it goes up by 1, but im not hitting the egg.
User avatar
The achievement
 
Posts: 220
Joined: Sun Feb 12, 2006 11:01 pm
Location: United States,Massachusetts
Score: 0 Give a positive score

Postby DilloDude » Wed Mar 08, 2006 11:50 pm

Have you got on collision with egg, eggCount += 1?
Image
User avatar
DilloDude
 
Posts: 866
Joined: Tue Jan 24, 2006 9:51 am
Location: Nyerellion
Score: 58 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest