eg)
- Code: Select all
image001.x = 0
image001.y = 1
image002.x = 2
image002.y = -1
image003.x = -2
image003.y = 5
...
etc
image001.x = 0
image001.y = 1
image002.x = 2
image002.y = -1
image003.x = -2
image003.y = 5
...
etc
if(animpos = 0)//first frame
{
x = 1;
y = 1;
}
if(animpos = 1)//second frame
{
x = 2;
y = 2;
}
if(animindex = 0)//first image
{
x = 1;
y = 1;
}
if(animindex = 1)//second image
{
x = 2;
y = 2;
}
if(charanim == 0) // alert
{
ChangeAnimation("Event Actor", "alert.body1", NO_CHANGE);
if(animpos == 0)
{
x = -3;
y = -18;
}
if(animpos == 1)
{
x = -3;
y = -19;
}
if(animpos == 2)
{
x = -3;
y = -20;
}
if(animpos == 3)
{
x = -3;
y = -19;
}
}
if(charanim == 0) // alert
{
if(animpos == 0)
{
x = -3;
y = -18;
}
if(animpos == 1)
{
x = -3;
y = -19;
}
if(animpos == 2)
{
x = -3;
y = -20;
}
if(animpos == 3)
{
x = -3;
y = -19;
}
}
if(playeranim == 0) // stand
{
switch(animpos)
{
case 0:
x = 16;
y = 31;
case 1:
x = 17;
y = 31;
case 2:
x = 18;
y = 31;
case 3:
x = 17;
y = 31;
}
}
...
switch(animpos)
{
case 0:
x = 16;
y = 31;
break;
case 1:
x = 17;
y = 31;
break;
etc...
Users browsing this forum: No registered users and 1 guest