Deltarune (Chapter 2) script viewer

← back to main script listing

gml_Object_obj_rouxlsbattle_hey_Draw_0

(view raw script w/o annotations or w/e)
1
trackpos = audio_sound_get_track_position(global.batmusic[1]);
2
if (global.myfight == 0)
3
{
4
    if (trackpos >= 58.335 && trackpos <= 58.375)
5
    {
6
        if (con == 0)
7
        {
8
            timer = 0;
9
            con = 1;
10
        }
11
    }
12
}
13
if (con == 1)
14
{
15
    draw_sprite(spr_rouxls_bubble_hey, lang, obj_rouxls_enemy.x - 10, global.monstery[obj_rouxls_enemy.myself]);
16
    timer++;
17
    if (timer == 12)
18
        con = 0;
19
}
20
if (global.flag[54 encounter_pointer] == 0)
21
    instance_destroy();