Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_falling_boulders_boulder_Step_0

(view raw script w/o annotations or w/e)
1
if (image_alpha < 1)
2
    image_alpha += 0.2
3
vspeed += 0.33
4
if (vspeed > fall_speed)
5
    vspeed = fall_speed
6
var box = 3154
7
if (y >= (box.bbox_bottom - 12))
8
{
9
    instance_destroy()
10
    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)
11
    var break_sound = audio_play_sound(snd_rock_break, 1, 0)
12
    audio_sound_gain(break_sound, 0.7, 0)
13
    for (var i = 0; i < 2; i++)
14
    {
15
        var debris = instance_create_depth(x, y, (depth - 1), obj_battle_enemy_attack_falling_boulders_boulder_piece)
16
        debris.hspeed = -2 + i * 4
17
    }
18
}