Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_petal_generator_phase_1_Step_0

(view raw script w/o annotations or w/e)
1
cood_x = irandom_range(-10, (room_width + 10))
2
current_delay++
3
if (current_delay == generation_speed)
4
{
5
    current_delay = 0
6
    instance_create_depth(cood_x, cood_y, choose(999, 999, 0), spawned_object)
7
}