clones

Game Editor comments and discussion.

clones

Postby ESL » Sat May 04, 2013 4:33 am

How do I create many clones in response to a collision?
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: clones

Postby Hblade » Sat May 04, 2013 4:57 am

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.
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score

Re: clones

Postby ESL » Sat May 04, 2013 12:01 pm

Thanks Hblade. Point +1 for you.
ESL
 
Posts: 96
Joined: Mon Jun 28, 2010 2:05 am
Score: 1 Give a positive score

Re: clones

Postby Hblade » Sat May 04, 2013 5:54 pm

thanks and your welcome =D
Subscribe to my YouTube? - Yes| No
User avatar
Hblade
 
Posts: 4455
Joined: Fri Dec 08, 2006 11:14 pm
Score: 181 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest