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.
33 lines
503 B
33 lines
503 B
if (state == 1)
|
|
{
|
|
if (x < targetx)
|
|
{
|
|
hspeed += 0.1
|
|
image_xscale = 1
|
|
}
|
|
else
|
|
{
|
|
hspeed -= 0.1
|
|
image_xscale = -1
|
|
}
|
|
if (y < targety)
|
|
vspeed += 0.1
|
|
else
|
|
vspeed -= 0.1
|
|
speed = min(3, speed)
|
|
}
|
|
if (state == 2)
|
|
speed += 0.2
|
|
if (state == 100)
|
|
{
|
|
speed *= 0.8
|
|
image_alpha -= 0.05
|
|
if (image_alpha <= 0.05)
|
|
instance_destroy()
|
|
}
|
|
if instance_exists(oTorizo2)
|
|
{
|
|
if (oTorizo2.state == 4)
|
|
state = 100
|
|
}
|