U
User
Guest
I have 3 rooms and 3 objects.
Rooms - room_1, room_2, room_3.
Objects - background_image, logo_image,surface_draw_enable_object.
I want to have one camera and view settings for all rooms.
I want to see background image, logo_image in room_1 and room_2. Not in room 3.
So i must do the same actions for every room?
Like
(room_1 persistent) RoomCreationCode
Ok i use my scripts, set camera position, set sprite to my background_image and logo_image.
Everything looks good.
But now i leave room_1 and go to room_2. And all objects (instances) will be destroyed.
My camera position, objects sprites index etc.
So i need to copy this code to (room_2) RoomCreationCode?
It works but, do i really need to copy this code to all rooms?
"New room = new instances=new rules?"
So i need more scripts?
Rooms - room_1, room_2, room_3.
Objects - background_image, logo_image,surface_draw_enable_object.
I want to have one camera and view settings for all rooms.
I want to see background image, logo_image in room_1 and room_2. Not in room 3.
So i must do the same actions for every room?
Like
(room_1 persistent) RoomCreationCode
Code:
create_main_settings_array();
application_surface_draw_enable(false);
surface_resize(application_surface, display_width, display_height);
set_camera_position_and_resolution();
set_main_objects_position();
set_sprites_and_depth_to_all_objects();
room_goto(room_2);
Everything looks good.
But now i leave room_1 and go to room_2. And all objects (instances) will be destroyed.
My camera position, objects sprites index etc.
So i need to copy this code to (room_2) RoomCreationCode?
It works but, do i really need to copy this code to all rooms?
"New room = new instances=new rules?"
So i need more scripts?