Getclone problem
Posted: Sun Aug 21, 2011 2:26 pm
Hey all
Just having a bit of a problem using the get clone feature.
What I'm trying to do : At the end of a level a well done message appears and then after a while the next level starts.
When the end of level message appears all the actors on the screen have their events disabled
This includes an actor called Fan which has many clones .
How Im trying to do it:
Why I think it's not working : Because with the events that are happening through the level the first fans clone index may not be 0 and they all may not be indexed in a 0 to x kind of way. (eg:jumping from 4 to 6 to 8 rather than 4 5 and 6)
My Question : How would I get around this?
Just having a bit of a problem using the get clone feature.
What I'm trying to do : At the end of a level a well done message appears and then after a while the next level starts.
When the end of level message appears all the actors on the screen have their events disabled
This includes an actor called Fan which has many clones .
How Im trying to do it:
- Code: Select all
int Fans;
int i;
Fans = ActorCount("Fan");
for (i=0; i<Fans; i++)
{ EventDisable(getclone 2("Fan",i)->clonename, EVENTALL);}
Why I think it's not working : Because with the events that are happening through the level the first fans clone index may not be 0 and they all may not be indexed in a 0 to x kind of way. (eg:jumping from 4 to 6 to 8 rather than 4 5 and 6)
My Question : How would I get around this?