Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_credits_intermission_ripple_spawner_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
prd_max = 40
4
if can_spawn_left
5
{
6
    if (irandom(left_prd) == 1)
7
    {
8
        instance_create_depth(choose(irandom_range(210, 220), irandom_range(260, 270)), irandom_range((obj_intermission_raft.y + 150), (obj_intermission_raft.y + 180)), (obj_intermission_raft.depth + 1), obj_credits_intermission_ripple)
9
        left_prd = prd_max
10
        can_spawn_left = false
11
        alarm[0] = 5
alarm[0]

if live_call() return global.live_result; can_spawn_left = true
12
    }
13
    else if (left_prd > prd_min)
14
        left_prd--
15
}
16
with (obj_credits_intermission_ripple)
17
    image_speed = 1