Page 2 of 2

PostPosted: Fri Jul 28, 2006 10:25 am
by Hyperyon
The code doesnt repeat the events :(

my code is something like this:



count++;

if(count == 1)
{
//Create actor 1
}
else if(count == 2)
{
//Create actor 2
}
else if (count ==3)
{
//destroy actor 1
//destroy actor 2
}

PostPosted: Fri Jul 28, 2006 12:35 pm
by makslane
Are the code executing some condition at first time?

PostPosted: Fri Jul 28, 2006 1:57 pm
by Hyperyon
yes :?

PostPosted: Fri Jul 28, 2006 8:15 pm
by relaxis
you're trying to use a SWITCH using IF AND ELSE statements lol.

Code: Select all

switch(whatever condition you want - in this case Count++)

and something like

case1* = create actor

case2* = create actor


* case means basically "when the value of count++ is = to 1,2,3,4,5 etc...
then execute command create actor