Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_fmartlet_spawner_martlet_glass_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var battle_box = obj_dialogue_box_battle_transformation_any
4
switch attack_tick
5
{
6
    case 60:
7
        instance_create_depth((battle_box.x - glass_width * 0.5 - glass_width), (battle_box.bbox_top - 20), -100, obj_martlet_attack_glass)
8
        instance_create_depth((battle_box.x - glass_width * 0.5), (battle_box.bbox_top - 20), -100, obj_martlet_attack_glass)
9
        instance_create_depth((battle_box.x - glass_width * 0.5 + glass_width), (battle_box.bbox_top - 20), -100, obj_martlet_attack_glass)
10
        attack_tick = 0
11
        break
12
}
13
14
attack_tick += 1