Yuuup!!
I wanted to ask something: how can I make random animations and codes? That is for an enemy. The problem is that there are many codes in the project, but I just want to use those one which are made fir the enemy in a randm way.how can I do??
switch(animindex)
{
case getAnimIndex("run"):
..code for this one
break;
// and so on
}
switch(animindex)
{
case 0: // if animindex==0
//code
break;
case 1: // if animindex==1
break;
}
rand(2);
ChangeAnimation("Event Actor", getAnimName(rand(8)), FORWARD);
Users browsing this forum: No registered users and 1 guest