Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_green_petal_spawner_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
petal_count = 6;
4
petal_speed = 5;
5
petal_dist = 90;
6
spin_speed = 2;
7
var soul = 1279;
8
var i = 0;
9
while (i < 360)
10
{
11
    var petal = instance_create_depth(soul.x + lengthdir_x(petal_dist, i), soul.y + lengthdir_y(petal_dist, i), depth - 1, obj_flowey_battle_phase_2_green_petal);
12
    petal.petal_dir = i;
13
    i += (360 / petal_count);
14
}