M
Michał
Guest
Hi.
From some time I try to create new room (in script) in specifed resolution then go to it by room_goto(some_room). But, it is not working.
Below I include script, I entered it to "Creation Code" of room0.
Output from console:
From some time I try to create new room (in script) in specifed resolution then go to it by room_goto(some_room). But, it is not working.
Below I include script, I entered it to "Creation Code" of room0.
Code:
show_debug_message('-----------------------'+room_get_name(room))
show_debug_message('-----------------------'+string(room_height))
show_debug_message('-----------------------'+string(room_width))
var my_room;
my_room = room_add();
room_set_width(my_room, 1600);
room_set_height(my_room, 900);
room_set_background_colour(my_room,make_colour_rgb(0,255,0), true);
room_goto(my_room);
//window_set_size(1600,900)
show_debug_message('-----------------------'+room_get_name(room))
show_debug_message('-----------------------'+string(room_height))
show_debug_message('-----------------------'+string(room_width))
-----------------------room1
-----------------------768
-----------------------1024
-----------------------room1
-----------------------768
-----------------------1024
-----------------------768
-----------------------1024
-----------------------room1
-----------------------768
-----------------------1024