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.
AM2Rogue/Export_Code/gml_Object_oA5CarrierBotCut...

17 lines
391 B

if (state == 1)
{
gravity_direction = point_direction((x + (1 * facing)), (y + 18), targetx, targety)
gravity = 0.2
speed = min(speed, 6)
if abs(hspeed > 0.1)
{
if (hspeed > 0)
facing = 1
else
facing = -1
}
if (point_distance((x + (1 * facing)), (y + 18), targetx, targety) < 8)
instance_destroy()
}
statetime += 1