Page 1 of 1

Breakout help

PostPosted: Sun Feb 24, 2008 4:26 am
by D.caaz
ok i need some help...

I need random cloned actors to drop a bonus when its destroyed, i cant figure it out because whatever i tried would make all the clone actors drop a bunus when they are destroyed.

also i need to make something like a variable that can be used on all the .dat files like i want to have a minigame feature but you have to unlock the minigames in another .dat file.

Re: Breakout help

PostPosted: Sun Feb 24, 2008 11:36 am
by j2graves
make the event on the actor itself. instead of having the event : destroy actor actor's name
you should have the event: destroy actor event actor
that way it will only affect the one that got hit

Re: Breakout help

PostPosted: Sun Feb 24, 2008 7:52 pm
by D.caaz
ok and how do i do a random codeso that it will change an actor called bonus into any random animation

Re: Breakout help

PostPosted: Sun Feb 24, 2008 8:42 pm
by D.caaz
Also, how do i make it to where when all bricks are destroyed it goes on to the next level?

Re: Breakout help

PostPosted: Mon Feb 25, 2008 12:17 am
by Game A Gogo
[deleted]

Re: Breakout help

PostPosted: Mon Feb 25, 2008 12:18 am
by Game A Gogo
1. use collide for the actor name
2.
Code: Select all
switch(rand(animnum))
{
case 0:
changeanimation("event","bla", etc...);
break;
case 1:
changeanimation("event", "bla2", etc...);
break;
}


something like that, you can make it go on and on. use default instead of case # if the check is not equal to any.
change animnum to how much animation there is in the actor.

3.
Code: Select all
if(actorcount("brick")==0)
{
//code to change levels
}