Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_1_attack_audience_creator_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (scene < 8)
4
    background_alpha = lerp(background_alpha, 1.01, 0.35)
5
else
6
    background_alpha = lerp(background_alpha, -0.01, 0.35)
7
var box = obj_dialogue_box_battle_transformation_any
8
switch scene
9
{
10
    case 0:
11
        cutscene_wait(0.75)
12
        break
13
    case 1:
14
        instance_create_depth(box.x, box.y, (depth - 100), obj_flowey_1_attack_audience)
15
        cutscene_advance()
16
        break
17
    case 2:
18
        cutscene_wait(1.25)
19
        break
20
    case 3:
21
        cutscene_advance()
22
        break
23
    case 4:
24
        obj_flowey_1_attack_audience_hate_sign.image_speed = 1
25
        cutscene_advance()
26
        break
27
    case 5:
28
        cutscene_wait(1.25)
29
        break
30
    case 6:
31
        obj_flowey_1_attack_audience.active = true
32
        cutscene_advance()
33
        break
34
    case 7:
35
        cutscene_wait(7)
36
        break
37
    case 8:
38
        obj_flowey_1_attack_audience.active = false
39
        obj_flowey_1_attack_audience.fadeout = true
40
        obj_flowey_1_attack_audience_hate_sign.image_alpha = background_alpha
41
        obj_flowey_1_attack_audience_hate_flower.image_alpha = background_alpha
42
        if (background_alpha <= 0)
43
            instance_destroy()
44
        break
45
}