Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_scr_screenshake_battle_custom

(view raw script w/o annotations or w/e)
1
function 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 }
() //gml_Script_scr_screenshake_battle_custom
2
{
3
    instance_destroy(obj_screenshake_battle)
4
    var screenshake = instance_create(0, 0, obj_screenshake_battle)
5
    screenshake.battle_screenshake_duration = argument[0]
6
    screenshake.battle_screenshake_intensity = argument[1]
7
    screenshake.battle_screenshake_dec = screenshake.battle_screenshake_intensity / screenshake.battle_screenshake_duration
8
}