Undertale Yellow script viewer

← back to main script listing

gml_GlobalScript_room_set_background

(view raw script w/o annotations or w/e)
1
function room_set_background(argument0, argument1, argument2, argument3, argument4, argument5, argument6, argument7, argument8, argument9, argument10, argument11) //gml_Script_room_set_background
2
{
3
    var __ind = argument0
4
    var __bind = argument1
5
    var __vis = argument2
6
    var __fore = argument3
7
    var __back = argument4
8
    var __x = argument5
9
    var __y = argument6
10
    var __htiled = argument7
11
    var __vtiled = argument8
12
    var __hspeed = argument9
13
    var __vspeed = argument10
14
    var __alpha = argument11
15
    if (room_exists(__ind) == false)
16
        return -1;
17
    var __currroom = layer_get_target_room()
18
    layer_set_target_room(__ind)
19
    __background_set_element(__bind, __vis, __fore, __back, __x, __y, __htiled, __vtiled, 1, 1, false, __hspeed, __vspeed, c_white, __alpha)
20
    layer_set_target_room(__currroom)
21
}