Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_organic_virus_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var launch_speed = 10
4
switch scene
5
{
6
    case 0:
7
        if (image_xscale < 1.2)
8
        {
9
            image_xscale += 0.1
10
            image_yscale = image_xscale
11
        }
12
        else
13
            scene++
14
        break
15
    case 1:
16
        image_xscale = lerp(image_xscale, 1, 0.1)
17
        image_yscale = image_xscale
18
        if (image_xscale <= 1.01)
19
        {
20
            image_xscale = 1
21
            image_yscale = 1
22
            scene++
23
        }
24
        break
25
    case 2:
26
        cutscene_wait(1)
27
        break
28
    case 3:
29
        var soul = obj_heart_battle_fighting_parent
30
        target_x = soul.x
31
        target_y = soul.y
32
        direction = point_direction(x, y, target_x, target_y)
33
        image_xscale = lerp(image_xscale, 1.25, 0.35)
34
        image_yscale = image_xscale
35
        if (image_xscale > 1.24)
36
        {
37
            speed = launch_speed
38
            scene++
39
        }
40
        break
41
    case 4:
42
        speed -= 0.25
43
        image_xscale = lerp(image_xscale, 1, 0.5)
44
        image_yscale = image_xscale
45
        if (speed <= 1)
46
            scene++
47
        break
48
    case 5:
49
        if cutscene_wait(0.5)
50
            scene = 3
51
        break
52
}
53
54
image_angle += (1 * rot)