Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_battle_phase_2_green_petal_spawner_Step_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
var soul = obj_heart_battle_fighting_yellow_final
4
with (obj_flowey_battle_phase_2_green_petal)
5
{
6
    x = soul.x + (lengthdir_x(other.petal_dist, petal_dir))
7
    y = soul.y + (lengthdir_y(other.petal_dist, petal_dir))
8
    petal_dir += other.spin_speed
9
}
10
if (petal_dist > 0)
11
    petal_dist -= 3
12
else
13
    instance_destroy()