M
Michał
Guest
Hi,
I have problem with creating instances in created rooms.
Code:
The some_object is not attached to just created room.
From thread I posted before I know that all scripts (of previous room) has to be done and then global variables such room (room id) will change.
How to solve it? How to add instance to new room? Maybe it is possible to overwrtite 'creation code' of the room?
I have problem with creating instances in created rooms.
Code:
Code:
var _MENU_ROOM;
_MENU_ROOM = room_add();
var width = 800;
var height = 600;
room_set_width(_MENU_ROOM, width);
room_set_height(_MENU_ROOM, height);
window_set_size(width,height);
surface_resize(application_surface, width, height);
room_goto(_MENU_ROOM);
var windowed_block = instance_create(0,0,some_object);
From thread I posted before I know that all scripts (of previous room) has to be done and then global variables such room (room id) will change.
How to solve it? How to add instance to new room? Maybe it is possible to overwrtite 'creation code' of the room?