Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_flowey_1_attack_pellet_circle_spawner_Create_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
pellet_count = 8;
4
pellet_dist_default = 56;
5
pellet_dist = pellet_dist_default;
6
pellet_speed = 3 * choose(1, -1);
7
for (var i = 0; i < pellet_count; i++)
8
{
9
    pellet[i] = instance_create_depth(x, y, -300, obj_battle_enemy_attack_fpellets_simple);
10
    pellet[i].image_speed = 0;
11
    pellet[i].image_index = 1;
12
    pellet[i].image_alpha = 0;
13
    pellet[i].direction = i * (360 / pellet_count);
14
    pellet[i].image_angle = pellet[i].direction;
15
}
16
var box = 3154;
17
image_alpha = 0;
18
direction = point_direction(x, y, box.x, box.y);
19
speed = 3.5;
20
fade_out = false;
21
alarm[0] = 50;
gml_Object_obj_flowey_1_attack_pellet_circle_spawner_Alarm_0.gml

if (live_call()) return global.live_result; fade_out = true;
22
alarm[1] = 15;
gml_Object_obj_flowey_1_attack_pellet_circle_spawner_Alarm_1.gml

pellet_dist = pellet_dist_default * 1.25; alarm[1] = 15;