Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_battle_enemy_attack_asgore_surround_flame_Step_0

(view raw script w/o annotations or w/e)
1
if (live_call())
2
    return global.live_result;
3
var battle_box = 3154;
4
show_debug_message(bullet_dist);
5
if (bullet_dist < 3)
6
    instance_destroy();
7
switch (scene)
8
{
9
    case 0:
10
        break;
11
    case 1:
12
        if (speed_current < speed_max)
13
            speed_current += accel_speed;
14
        bullet_dist -= speed_current;
15
        break;
16
}
17
x = battle_box.x + lengthdir_x(bullet_dist, direction);
18
y = battle_box.y + lengthdir_y(bullet_dist, direction);