Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_rotating_tower_animation_Step_0

(view raw script w/o annotations or w/e)
1
if (con == 2)
2
{
3
    timer++;
4
    var frame = floor(min(frame_count - 1, timer / animation_speed));
5
    if (frame != last_frame)
6
        advance_frame(frame);
7
    if ((timer % 20) == 1)
8
        snd_play(snd_rumble, 0.3);
9
    obj_rotating_tower_controller_new.tower_xshake = ((floor(timer / 2) % 2) * 2) - 1;
10
    last_frame = frame;
11
    if (last_frame == (frame_count - 1))
12
    {
13
        con = 3;
14
        obj_rotating_tower_controller_new.tower_xshake = 0;
15
    }
16
}