Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_susiezilla_singlescreen_annoying_object_Step_0

(view raw script w/o annotations or w/e)
1
angle += anglechange;
2
x = anchor_x + lengthdir_x(1200, angle);
3
y = anchor_y + lengthdir_y(1200, angle);
4
image_angle = point_direction(x, y, anchor_x, anchor_y) - 90;
5
if (angle >= 354)
6
    instance_destroy();
7
if (abs(angle - 270) <= 2 && !DESTROY)
8
{
9
    DESTROY = true;
10
    with (obj_susiezilla_statue)
11
        hp = 1;
12
    obj_susiezilla_statue.take_hit(-1, 9999, 8);
13
}
14
scr_afterimagefast
scr_afterimagefast

function
scr_afterimagefast()
{ afterimage = instance_create(x, y, obj_afterimage); afterimage.sprite_index = sprite_index; afterimage.image_index = image_index; afterimage.image_blend = image_blend; afterimage.image_speed = 0; afterimage.depth = depth; afterimage.image_xscale = image_xscale; afterimage.image_yscale = image_yscale; afterimage.image_angle = image_angle; afterimage.fadeSpeed = 0.08; return afterimage; }
();