switch(animindex)
{
case 0://first animation
switch(animpos)
{
case 0: y=0; break;//first frame
case 1: y=1; break;
case 2: y=3; break;
case 3: y=2; break;
case 4: y=1; break;
}
break;
case 1://second animation
switch(animpos)
{
case 0: y=0; break;//first frame
case 1: y=1; break;
case 2: y=3; break;
case 3: y=2; break;
case 4: y=1; break;
}
break;
//case #:
//switch(animpos)
//{
// case #: y=#; break;
//}
//break;
}
Users browsing this forum: No registered users and 1 guest