Breakout help

Non-platform specific questions.

Breakout help

Postby D.caaz » Sun Feb 24, 2008 4:26 am

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.
Current project
Space Battle(Back on track :) )
User avatar
D.caaz
 
Posts: 109
Joined: Tue Feb 19, 2008 6:42 am
Score: 4 Give a positive score

Re: Breakout help

Postby j2graves » Sun Feb 24, 2008 11:36 am

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
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: Breakout help

Postby D.caaz » Sun Feb 24, 2008 7:52 pm

ok and how do i do a random codeso that it will change an actor called bonus into any random animation
Current project
Space Battle(Back on track :) )
User avatar
D.caaz
 
Posts: 109
Joined: Tue Feb 19, 2008 6:42 am
Score: 4 Give a positive score

Re: Breakout help

Postby D.caaz » Sun Feb 24, 2008 8:42 pm

Also, how do i make it to where when all bricks are destroyed it goes on to the next level?
Current project
Space Battle(Back on track :) )
User avatar
D.caaz
 
Posts: 109
Joined: Tue Feb 19, 2008 6:42 am
Score: 4 Give a positive score

Re: Breakout help

Postby Game A Gogo » Mon Feb 25, 2008 12:17 am

[deleted]
Last edited by Game A Gogo on Mon Feb 25, 2008 12:19 am, edited 1 time in total.
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Re: Breakout help

Postby Game A Gogo » Mon Feb 25, 2008 12:18 am

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
}
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron