Page 1 of 1

Easter egg

PostPosted: Wed Mar 08, 2006 12:53 am
by The achievement
Ok hi people again, i was wondering, i added a easter egg and i want my player to hit it and the score goes up by +80. how do i do that?

PostPosted: Wed Mar 08, 2006 1:10 am
by DilloDude
If you are using a variable for score, add a collision event to the egg, on collision with any side of player.
Code: Select all
scoreVar+=80;
DestroyActor("Event Actor");
This will increase the score by 80 and destroy the egg so you can't keep collecting it and get an infinite supply of points. If you are using a just a text actor 'Score' to show the score, type
Code: Select all
Score.textNumber+=80;
DestroyActor("Event Actor");

PostPosted: Wed Mar 08, 2006 1:11 am
by The achievement
ya im using a variable

PostPosted: Wed Mar 08, 2006 2:01 am
by The achievement
thank you dillo dude! your theory worked! lol But you didnt answer me about the rain animation, can i just do y=+1?

PostPosted: Wed Mar 08, 2006 1:26 pm
by Troodon
If you are not using a rain animation you can put in each water drop the code DilloDude gave you. This will make all drops fall down. Then make clones of drop and put them in the up corner of the screen. When they hit something in the down corner of the screen make them to return back to the up corner.
You can also make a "cloud" actor wich moves on a path and drop drops with random timer. (remember to destroy drops when out of vision!)

PostPosted: Wed Mar 08, 2006 11:53 pm
by DilloDude
tekdino wrote:You can also make a "cloud" actor wich moves on a path and drop drops with random timer. (remember to destroy drops when out of vision!)

Yeah, that's a good idea.