Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_starlo_take_aim_shot_Step_0

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