Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_heart_main_screen_shop_Create_0

(view raw script w/o annotations or w/e)
1
depth = (-room_height) - 164
2
var main_shop_screen_number = global.main_shop_screen_number
3
if (main_shop_screen_number == 1)
4
{
5
    x = obj_main_screen_shop.x + 229
6
    y = obj_main_screen_shop.y + 19
7
}
8
else if (main_shop_screen_number == 2)
9
{
10
    x = obj_main_screen_shop.x + 229
11
    y = obj_main_screen_shop.y + 39
12
}
13
else if (main_shop_screen_number == 3)
14
{
15
    x = obj_main_screen_shop.x + 229
16
    y = obj_main_screen_shop.y + 59
17
}
18
else if (main_shop_screen_number == 4)
19
{
20
    x = obj_main_screen_shop.x + 229
21
    y = obj_main_screen_shop.y + 79
22
}
23
var player_character = global.player_character
24
switch player_character
25
{
26
    case "CLOVER":
27
        sprite_index = spr_heart_yellow_overworld
28
        break
29
}