Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_space_rock_Destroy_0

(view raw script w/o annotations or w/e)
1
audio_play_sound(snd_rock_break, 1, 0)
2
scr_screenshake_battle_custom
scr_screenshake_battle_custom

function scr_screenshake_battle_custom() //gml_Script_scr_screenshake_battle_custom { instance_destroy(obj_screenshake_battle) var screenshake = instance_create(0, 0, obj_screenshake_battle) screenshake.battle_screenshake_duration = argument[0] screenshake.battle_screenshake_intensity = argument[1] screenshake.battle_screenshake_dec = screenshake.battle_screenshake_intensity / screenshake.battle_screenshake_duration }
(6, 1)
3
for (var i = 0; i < 4; i++)
4
{
5
    var debris = instance_create_depth(x, y, -100, obj_battle_enemy_attack_space_rock_debris)
6
    debris.direction = 45 + i * 30
7
    debris.speed = 5
8
}