Jorg Gjer
Member
Hi.
I want to be able to create a rom,
Put layer and objects in it.
Bring objecjst from the room i'm in , to the created rom.
Play, have fun , and return back.
All this programaticaly.
I have added a room.
Then in in code.
Then adding a objet into the room.
Set the player object to persistent
then
I get an error about missing variables.
Why is there missing variables when the player already has been running around , and is persistent ?
When i turn off persistent , the code runs fine , but data is deleted and its a new object.
What is a good aproach\practice to bring objects from room to room , that has set variables ?
I want to be able to create a rom,
Put layer and objects in it.
Bring objecjst from the room i'm in , to the created rom.
Play, have fun , and return back.
All this programaticaly.
I have added a room.
Then in in code.
Code:
myroom = room_duplicate(room_roomtodublicate);
Code:
room_instance_add(myroom, 100, 100, obj_player);
then
Code:
room_goto(myroom);
Why is there missing variables when the player already has been running around , and is persistent ?
When i turn off persistent , the code runs fine , but data is deleted and its a new object.
What is a good aproach\practice to bring objects from room to room , that has set variables ?