Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_geno_3_Alarm_0

(view raw script w/o annotations or w/e)
1
var battle_box = obj_dialogue_box_battle_transformation_any
2
var spawn_dir = irandom_range(0, 359)
3
var spr_width = sprite_get_width(spr_battle_enemy_attack_axis_ball)
4
if (current_side == "left")
5
{
6
    var spawn_x = irandom_range((battle_box.bbox_left + 20), 340)
7
    current_side = "right"
8
}
9
else
10
{
11
    spawn_x = irandom_range(300, (battle_box.bbox_right - 20))
12
    current_side = "left"
13
}
14
var spawn_y = battle_box.bbox_top - 60
15
var ball = instance_create_depth(spawn_x, spawn_y, -100, obj_battle_enemy_attack_axis_energy_ball_boss)
16
ball.direction = 270
17
if (attack_count > 0)
18
{
19
    attack_count -= 1
20
    alarm[0] = attack_interval
alarm[0]

var battle_box = obj_dialogue_box_battle_transformation_any var spawn_dir = irandom_range(0, 359) var spr_width = sprite_get_width(spr_battle_enemy_attack_axis_ball) if (current_side == "left") { var spawn_x = irandom_range((battle_box.bbox_left + 20), 340) current_side = "right" } else { spawn_x = irandom_range(300, (battle_box.bbox_right - 20)) current_side = "left" } var spawn_y = battle_box.bbox_top - 60 var ball = instance_create_depth(spawn_x, spawn_y, -100, obj_battle_enemy_attack_axis_energy_ball_boss) ball.direction = 270 if (attack_count > 0) { attack_count -= 1 alarm[0] = attack_interval } else instance_destroy()
21
}
22
else
23
    instance_destroy()