I want to have a background that has two animations, a hill and a forest.
When I create my background actor, I want to choose randomly between the forest and the hill.
THANKS A BUNCH!
factor = rand(amount);
switch(factor)
{
case 0: { do something here}
case 1: { do something else }
case 2: { factor = 3;}
case 3: { will cause this line to activate}
case x: { dont forget to include a case for each possible value}
}
int i;
i= round(rand(1));
if (i==0) Change Animation (Hils.......);
else if (i==1) Change Animation (Trees.....);
ChangeAnimation("Event Actor", getAnimName(round(rand(numberofanimations))), FORWARD);
Users browsing this forum: No registered users and 1 guest