Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_ed_smash_hand_Step_0

(view raw script w/o annotations or w/e)
1
if (image_index >= (image_number - 2) && image_index < (image_number - 1) && image_speed != 0)
2
{
3
    image_speed = 0
4
    image_index = image_number - 2
5
    alarm[1] = 15
alarm[1]

var fade_inc = 0.35 image_alpha -= fade_inc image_index = image_number - 1 if (image_alpha <= 0.35) { instance_destroy() return; } alarm[1] = 0.05 * room_speed
6
}
7
if (attack_rocks_spawned == false && floor(image_index == 12))
8
{
9
    var break_sound = audio_play_sound(snd_rock_break, 1, 0)
10
    audio_sound_gain(break_sound, 0.7, 0)
11
    audio_sound_pitch(break_sound, 0.85)
12
    scr_screenshake_battle
scr_screenshake_battle

function scr_screenshake_battle() //gml_Script_scr_screenshake_battle { instance_destroy(obj_screenshake_battle) var screenshake = instance_create(0, 0, obj_screenshake_battle) battle_screenshake_duration = argument[0] battle_screenshake_intensity = argument[1] battle_screenshake_dec = battle_screenshake_intensity / battle_screenshake_duration }
(6, 6)
13
    for (var i = 0; i < 3; i++)
14
    {
15
        var debris = instance_create_depth(x, y, (depth - 1), obj_attack_ed_smash_boulders)
16
        debris.hspeed = -3.5 + i * 3.5
17
    }
18
}