Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_player_cart_3_Create_0

(view raw script w/o annotations or w/e)
1
if (global.last_room_overworld != "rm_dunes_21")
2
{
3
    instance_destroy()
4
    instance_create(290, y, obj_player_cart)
5
    return;
6
}
7
obj_pl.image_alpha = 0
8
image_speed = 0.2
9
hspeed = 2
10
if (room == rm_dunes_20)
11
{
12
    image_xscale = -1
13
    hspeed = -2
14
}
15
state = 0
16
timer = 0
17
audio_play_sound(snd_rock_roll, 1, 1)
18
if (global.route == 3)
19
    sprite_index = spr_player_cart_geno
20
scr_load_palette_shader
scr_load_palette_shader

function scr_load_palette_shader() //gml_Script_scr_load_palette_shader { shader_on = false shader_sprite = spr_final_palette palette_sampler = sprite_get_texture(shader_sprite, 0) u_palette_tex = shader_get_sampler_index(sh_palette_swap, "palette_tex") u_palette_index = shader_get_uniform(sh_palette_swap, "palette_index") u_palette_texel_height = shader_get_uniform(sh_palette_swap, "palette_texel_height") u_palette_texel_width = shader_get_uniform(sh_palette_swap, "palette_texel_width") u_palette_x_offset = shader_get_uniform(sh_palette_swap, "palette_x_offset") u_palette_y_offset = shader_get_uniform(sh_palette_swap, "palette_y_offset") u_color_vect = shader_get_uniform(sh_palette_swap, "color_vect") palette_tex = sprite_get_texture(shader_sprite, 0) uniform_info = [texture_get_texel_height(palette_tex), texture_get_texel_width(palette_tex), array_get(texture_get_uvs(palette_tex), 0), array_get(texture_get_uvs(palette_tex), 1), argument[0]] index = 0 }
(1)
21
palette_index = obj_pl.palette_index
22
shader_on = obj_pl.shader_on