Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_axis_beams_Step_2

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
if (screenshake == true)
4
{
5
    __view_set((0 << 0), 0, 0)
6
    __view_set((1 << 0), 0, 0)
7
    __view_set((0 << 0), 0, ((__view_get((0 << 0), 0)) + (choose((-screenshake_max), screenshake_max))))
8
    __view_set((1 << 0), 0, ((__view_get((1 << 0), 0)) + (choose((-screenshake_max), screenshake_max))))
9
    screenshake_max -= 1
10
}
11
if (screenshake_max <= 0 && image_index >= (image_number - 1))
12
{
13
    __view_set((0 << 0), 0, 0)
14
    __view_set((1 << 0), 0, 0)
15
    screenshake = false
16
}