Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_martlet_ff_2_final_checker_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
x_center = obj_dialogue_box_battle_transformation_any.x
4
y_center = obj_dialogue_box_battle_transformation_any.y
5
feather_angle_radius = obj_dialogue_box_battle_transformation_any.bbox_right - x_center + 100
6
feather_angle_master = 90
7
feather_angle_speed = 60
8
feather_angle_total = 0
9
feather_angle_total_max = 240
10
feather_angle_direction = choose(-1, 1)
11
feather_count = 0
12
feather_create_max = 5
13
if instance_exists(obj_fmartlet_spawner_circular_scratch)
14
    feather_create_max = 3
15
no_loop_destroy = false
16
var random_number = 2
17
switch random_number
18
{
19
    case 1:
20
        feather_sprite = 2273
21
        break
22
    case 2:
23
        feather_sprite = 2274
24
        break
25
    case 3:
26
        feather_sprite = 2275
27
        break
28
    case 4:
29
        feather_sprite = 2276
30
        break
31
    case 5:
32
        feather_sprite = 2278
33
        break
34
    default:
35
        feather_sprite = 2273
36
}
37
38
event_user(0)