Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_geno_10_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 20:
7
    case 50:
8
    case 80:
9
    case 110:
10
        var laser = instance_create_depth(battle_box.x, (battle_box.bbox_top - 20), -100, obj_battle_enemy_attack_axis_blue_laser_geno)
11
        laser.vspeed = 4
12
        break
13
    case 160:
14
    case 190:
15
    case 220:
16
    case 250:
17
    case 280:
18
        laser = instance_create_depth((battle_box.bbox_left - 20), battle_box.y, -100, obj_battle_enemy_attack_axis_blue_laser_geno)
19
        laser.image_angle = 90
20
        laser.hspeed = 4
21
        break
22
    case 30:
23
        var ball = instance_create_depth(battle_box.x, (battle_box.bbox_bottom + 20), -100, obj_battle_enemy_attack_axis_geno_energy_ball_pulse)
24
        ball.move_speed = 9
25
        ball.image_speed_base = 2.5
26
        break
27
    case 290:
28
        instance_destroy()
29
        break
30
}
31
32
attack_tick += 1