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.
16 lines
318 B
16 lines
318 B
targetx = oCharacter.x
|
|
targety = (oCharacter.y - 20)
|
|
if instance_exists(oTank)
|
|
{
|
|
if (oTankHead.damaged > 0)
|
|
{
|
|
targetx = 1000
|
|
targety = (48 + random(192))
|
|
}
|
|
}
|
|
gravity_direction = point_direction(x, y, targetx, targety)
|
|
gravity = 0.12
|
|
image_angle = direction
|
|
if (speed > 2.2)
|
|
speed = 2.2
|