Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_petal_generator_overworld_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
    var new_petal = instance_create_depth(cood_x, cood_y, -9999, spawned_object)
7
    new_petal.image_xscale *= 0.5
8
    new_petal.image_yscale *= 0.5
9
}