Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_fire_bar_piece_Step_0

(view raw script w/o annotations or w/e)
1
updatetimer++;
2
if (updatetimer < 5)
3
    exit;
4
updatetimer = 0;
5
image_index += 1;
6
depth = 900000;
7
if (instance_exists(rotator_target))
8
{
9
    x = rotator_target.x + lengthdir_x(len, place);
10
    y = rotator_target.y + lengthdir_y(len, place);
11
    place += place_speed;
12
    len += len_speed;
13
}
14
else
15
{
16
    instance_destroy();
17
}