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 = obj_heart_battle_fighting_yellow_final
8
for (var i = 0; i < 360; i += (360 / petal_count))
9
{
10
    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)
11
    petal.petal_dir = i
12
}