You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
656 B
35 lines
656 B
if (!instance_exists(oAutoadPlayer))
|
|
inactive_steps += 1
|
|
if (inactive_steps > 60)
|
|
{
|
|
targetx = oCharacter.x
|
|
targety = (oCharacter.y - 12)
|
|
}
|
|
else if instance_exists(oAutoadPlayer)
|
|
{
|
|
targetx = oAutoadPlayer.x
|
|
targety = oAutoadPlayer.y
|
|
}
|
|
if (x != targetx)
|
|
x += ((targetx - x) / 8)
|
|
if (y != targety)
|
|
y += ((targety - y) / 8)
|
|
if (inactive_steps == 100)
|
|
{
|
|
view_object[0] = oCamera
|
|
with (oCharacter)
|
|
{
|
|
state = 23
|
|
statetime = 0
|
|
morphing = 0
|
|
turning = 0
|
|
}
|
|
with (oAutoadControlTrigger)
|
|
{
|
|
alarm[0] = 120
|
|
active = 0
|
|
activated = 0
|
|
}
|
|
instance_destroy()
|
|
}
|