Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_turret_fake_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
switch scene
4
{
5
    case 0:
6
        image_alpha += 0.2
7
        image_angle = direction - 180 + 180 * image_alpha
8
        if (image_alpha >= 1)
9
            scene++
10
        break
11
    case 1:
12
        if (destroy_self == true)
13
        {
14
            gravity = 0.25
15
            vspeed -= 7
16
            image_angle_speed = choose(-15, 15)
17
            scene++
18
        }
19
        break
20
    case 2:
21
        image_angle += image_angle_speed
22
        image_alpha -= 0.2
23
        if (image_alpha <= 0)
24
            instance_destroy()
25
        break
26
}
27
28
speed = lerp(speed, 0, 0.2)