text for easter egg
Posted:
Wed Mar 08, 2006 3:45 am
by The achievement
how do i make a score or a variable on how many easter eggs i get in the game
Posted:
Wed Mar 08, 2006 4:51 am
by DilloDude
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.
Posted:
Wed Mar 08, 2006 4:14 pm
by The achievement
Ya ill check that when i get home, im in school right now, but thank you for replying dillodude!
Posted:
Wed Mar 08, 2006 9:57 pm
by The achievement
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.
Posted:
Wed Mar 08, 2006 11:50 pm
by DilloDude
Have you got on collision with egg, eggCount += 1?