if(player.x<x&&player.x>x-200)
{
x-=1;
}
if(player.x>x&&player.x<x+200)
{
x+=1;
}
have a canvas, then when the player touches it, it makes an enemy say... 300 pixels to the right of it. that way it is made at the right time.
CreateActor("enemy", "animation", "(none)", "(none)", collide.x+300, collide.y, true);
CreateActor("enemy", "animation", "(none)", "(none)", collide.x+300, collide.y+(collide.height/2), true);
if (animindex!=0) { //if animation is NOT equal to move-right
ChangeAnimation("Event Actor", "MOVERIGHT", FORWARD); //I forgot the actual change animation code :3
xvelocity=3;
}
Users browsing this forum: No registered users and 1 guest