Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_frostermit_head_a_Step_2

(view raw script w/o annotations or w/e)
1
if (instance_exists(obj_quote_battle_frostermit_a) && instance_exists(obj_quote_bubble_battle))
2
{
3
    if (obj_quote_battle_frostermit_a.can_talk == true)
4
    {
5
        if (can_talk_no_loop == false)
6
        {
7
            image_index = 1
8
            can_talk_no_loop = true
9
        }
10
        image_speed = global.text_speed * global.talk_speed_frostermit * obj_quote_battle_frostermit_a.hold
11
    }
12
    else
13
    {
14
        can_talk_no_loop = false
15
        image_speed = 0
16
        image_index = 0
17
    }
18
}
19
else
20
{
21
    can_talk_no_loop = false
22
    image_speed = 0
23
    image_index = 0
24
}
25
x = obj_frostermit_body_a.x
26
y = obj_frostermit_body_a.head_new_displacement_y
27
with (obj_frostermit_head_shadow_a)
28
    event_user(0)