room_set_background_colour


描述

With this function you can set the background colour for a room (except the current one) and choose whether it should be drawn (true) or not (false).


语法:

room_set_background_colour(index, col, show);


参数:

参数 描述
index The index of the room to set the background colour of.
col The new background colour.
show Whether to show background colour (true) or not (false).


返回:

N/A(无返回值)


例如:

global.rm = room_add();
room_set_background_colour(global.rm, c_maroon, 1);

The above code will add a new room to the game and then set the background colour for that room to maroon and make the colour visible too.


上一页: General Room Functions And Variables
下一页: room_set_height
© Copyright YoYo Games Ltd. 2018 All Rights Reserved