Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_petal_pull_pollen_spawner_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
spawn_interval = 10
4
spawn_direction = 90
5
spawn_direction_variance = 15
6
spawn_x = x
7
spawn_y = y
8
side = 1
9
alarm[0] = 1
alarm[0]

if live_call() return global.live_result; var pollen = instance_create_depth(spawn_x, spawn_y, -100, obj_petal_pull_pollen) pollen.direction = spawn_direction pollen.target = spawned_last spawned_last = pollen alarm[0] = spawn_interval
10
spawned_last = 2979