Hitting a box

Talk about making games.

Hitting a box

Postby The achievement » Sat Mar 18, 2006 8:58 pm

Hi guys, i have a question mark box in my game like mario games, and you get an easter egg right when you hit it, ya the egg comes out when you hit it, but if you keep hitting it, the eggs can coming out each time you hit teh box. is there a way to only do it one time?????????
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 Novice » Sun Mar 19, 2006 10:19 am

Make an actor varuiable wich will be 0 when created and when hit the first time use
if([variable]==0)
{
Create Actor (EGG);
[variable]=1;
}
Why do i always get stuck?
User avatar
Novice
 
Posts: 399
Joined: Mon Aug 29, 2005 10:54 am
Location: Relative
Score: 5 Give a positive score


Return to Game Development

Who is online

Users browsing this forum: No registered users and 1 guest