Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_initiate_battle_decibat_Step_0

(view raw script w/o annotations or w/e)
1
if (moving == false)
2
{
3
    if (image_alpha == 0 && no_loop == false)
4
    {
5
        alarm[0] = 5
alarm[0]

if (image_alpha == 0) { audio_play_sound(snd_soul_battle_flash, 20, false) image_alpha = 1 flash_count += 1 } else image_alpha = 0 no_loop = false
6
        no_loop = true
7
    }
8
    if (image_alpha == 1 && no_loop == false && flash_count < 3)
9
    {
10
        alarm[0] = 5
alarm[0]

if (image_alpha == 0) { audio_play_sound(snd_soul_battle_flash, 20, false) image_alpha = 1 flash_count += 1 } else image_alpha = 0 no_loop = false
11
        no_loop = true
12
    }
13
    if (flash_count == 3 && no_loop_2 == false)
14
    {
15
        alarm[1] = 5
alarm[1]

moving = true audio_play_sound(snd_soul_battle_start, 20, 0)
16
        no_loop_2 = true
17
    }
18
}
19
if (moving == true)
20
{
21
    if (x != 48)
22
    {
23
        x_position += hsp
24
        x = (ceil(x_position / 2 - 0.5)) * 2
25
    }
26
    if (y != 454)
27
    {
28
        y_position += vsp
29
        y = (floor(y_position / 2 + 0.5)) * 2
30
    }
31
    if ((hsp_sign * x) > (hsp_sign * 48))
32
    {
33
        x = 48
34
        x_position = x
35
    }
36
    if ((vsp_sign * y) > (vsp_sign * 454))
37
    {
38
        y = 454
39
        y_position = y
40
    }
41
    if (x == 48 && y == 454 && no_loop_moving == false)
42
    {
43
        alarm[2] = 10
alarm[2]

with (obj_battle_intro_check) instance_destroy() instance_create(0, 0, obj_battle_generator) obj_decibat_head.image_index = 0 instance_destroy()
44
        no_loop_moving = true
45
    }
46
}