Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_axis_trash_shot_Step_0

(view raw script w/o annotations or w/e)
1
image_angle = direction
2
image_alpha = lerp(image_alpha, 1, 0.5)
3
image_xscale = lerp(image_alpha, 1, 0.15)
4
if (image_alpha > 0.99)
5
    image_alpha = 1
6
if (image_xscale > 0.99)
7
    image_alpha = 1
8
if (image_index >= (image_number - 1) && image_speed > 0)
9
{
10
    image_speed = 0
11
    image_index = image_number - 1
12
}
13
if place_meeting(x, y, obj_axis_body)
14
{
15
    instance_destroy()
16
    audio_play_sound(snd_monster_damage_hit, 1, 0)
17
    obj_axis_body.axis_damaged_act = true
18
    global.special_action_count += 1
19
    global.enemy_mode += 1
20
    global.attack_repeat = 0
21
    with (obj_axis_attack_controller_parent)
22
        instance_destroy()
23
}
24
var hit_gen = instance_place(x, y, obj_battle_enemy_axis_generator)
25
if (hit_gen != noone)
26
{
27
    instance_destroy(hit_gen)
28
    audio_play_sound(snd_monster_damage_hit, 1, 0)
29
    global.special_action_count += 1
30
    global.enemy_mode += 1
31
    global.attack_repeat = 0
32
    with (obj_axis_attack_controller_parent)
33
        instance_destroy()
34
}