Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_geno_2_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
var ball_offset = 30
5
switch attack_tick
6
{
7
    case 20:
8
    case 60:
9
        var laser = instance_create_depth(battle_box.x, (battle_box.bbox_top - 20), -100, obj_battle_enemy_attack_axis_blue_laser_geno)
10
        laser.vspeed = 3
11
        var laser2 = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_axis_orange_laser_geno)
12
        laser2.vspeed = -3
13
        break
14
    case 100:
15
        laser = instance_create_depth(battle_box.x, (battle_box.bbox_top - 20), -100, obj_battle_enemy_attack_axis_orange_laser_geno)
16
        laser.vspeed = 3
17
        laser2 = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_axis_blue_laser_geno)
18
        laser2.vspeed = -3
19
        break
20
    case 180:
21
        laser = instance_create_depth((battle_box.bbox_left - 20), battle_box.y, -100, obj_battle_enemy_attack_axis_blue_laser_geno)
22
        laser.hspeed = 3
23
        laser.image_angle = 90
24
        laser2 = instance_create_depth((battle_box.bbox_right + 20), battle_box.y, -100, obj_battle_enemy_attack_axis_orange_laser_geno)
25
        laser2.hspeed = -3
26
        laser2.image_angle = 90
27
        break
28
    case 220:
29
    case 260:
30
        laser = instance_create_depth((battle_box.bbox_left - 20), battle_box.y, -100, obj_battle_enemy_attack_axis_orange_laser_geno)
31
        laser.hspeed = 3
32
        laser.image_angle = 90
33
        laser2 = instance_create_depth((battle_box.bbox_right + 20), battle_box.y, -100, obj_battle_enemy_attack_axis_blue_laser_geno)
34
        laser2.hspeed = -3
35
        laser2.image_angle = 90
36
        break
37
    case 310:
38
        instance_destroy()
39
        break
40
}
41
42
attack_tick += 1