Page 1 of 1

clones

PostPosted: Sat May 04, 2013 4:33 am
by ESL
How do I create many clones in response to a collision?

Re: clones

PostPosted: Sat May 04, 2013 4:57 am
by Hblade
On collide:
Code: Select all
int i;
for(i=0;i<*CLONE_AMOUNT*;i++)
{
CreateActor(... "clone actor");
}


The code will have to be modified but yeah, *CLONE_AMOUNT* is the amount of clones you want to create, and CreateActor (make sure you only put it once) is what will create the actor. The for statement will begin a loop and create however many CLONE_AMOUNT's within that 1 single frame.

Re: clones

PostPosted: Sat May 04, 2013 12:01 pm
by ESL
Thanks Hblade. Point +1 for you.

Re: clones

PostPosted: Sat May 04, 2013 5:54 pm
by Hblade
thanks and your welcome =D