Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_mc_cart_Create_0

(view raw script w/o annotations or w/e)
1
if live_call()
2
    return global.live_result;
3
minecart_hsp = 0
4
minecart_vsp = 0
5
minecart_direction = "right"
6
minecart_base_speed = 0
7
minecart_empty = false
8
minecart_start = true
9
minecart_sound = -1
10
track_id = -4
11
cart_color = "yellow"
12
alarm[0] = 1
alarm[0]

if live_call() return global.live_result; switch cart_color { case "yellow": side_sprite = spr_mc_yellow_side forward_sprite = 1152 drain_sprite = 1153 break case "green": side_sprite = spr_mc_green_side forward_sprite = 1159 drain_sprite = 1161 break case "blue": side_sprite = spr_mc_blue_side forward_sprite = 1169 drain_sprite = 1170 break } sprite_index = side_sprite