Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_flowergirls_falling_flowers_flower_Step_0

(view raw script w/o annotations or w/e)
1
if (image_alpha < 1)
2
{
3
    image_alpha += 0.2
4
    if (image_alpha >= 1)
5
    {
6
        image_alpha = 1
7
        if (can_jump == false)
8
        {
9
            vspeed = -8
10
            hspeed = hsp
11
            gravity = 0.5
12
            can_jump = true
13
        }
14
    }
15
}
16
if (vspeed > 8)
17
    vspeed = 8
18
if ((bbox_bottom + vspeed) >= (obj_dialogue_box_battle_transformation_any.bbox_bottom - 8))
19
{
20
    if (bounce_count > 0)
21
    {
22
        bounce_count -= 1
23
        vspeed = (-vspeed) * 0.5
24
        hspeed *= 0.5
25
    }
26
    else
27
    {
28
        hspeed = 0
29
        vspeed = 0
30
        gravity = 0
31
    }
32
}