Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_steamworks_21_controller_Create_0

(view raw script w/o annotations or w/e)
1
var times_caught = global.sworks_flag[43]
2
if (global.geno_complete[3] == true)
3
{
4
    instance_destroy()
5
    instance_create(x, y, obj_steamworks_21_controller_geno)
6
    return;
7
}
8
if (global.sworks_flag[12] >= 2)
9
{
10
    instance_destroy()
11
    return;
12
}
13
scene = 0
14
cutscene_timer = 0
15
event_music = 0
16
axis_is_running = false
17
npc_axis_run_speed = clamp((5.6 - times_caught * 0.15 - global.using_gamepad * 0.1), 5, 5.6)
18
ceroba_is_running = false
19
shadow_axis_image_alpha = 0
20
if (global.sworks_flag[12] == 1 && global.route == 2)
21
{
22
    instance_create(270, 700, obj_ceroba_npc)
23
    obj_ceroba_npc.npc_direction = "up"
24
}
25
check_point_current = 2
26
check_point_current_axis = 2
27
checkpoint_x = path_get_point_x(pt_steamworks_21_axis_chase, check_point_current)
28
checkpoint_y = path_get_point_y(pt_steamworks_21_axis_chase, check_point_current)
29
checkpoint_x_axis = path_get_point_x(pt_steamworks_21_axis_chase, check_point_current_axis)
30
checkpoint_y_axis = path_get_point_y(pt_steamworks_21_axis_chase, check_point_current_axis)