Adding objects to diffent rooms room_instance_add

E

Edeyz

Guest
So after trying a verity of ways I cannot get room_instance_add to do anything.
I have tried putting it in a left click event by itself and changing the room through pressing space. But no matter what, when rm_system loads there is no object there.
Here is my code that I modded as closely to the help page as I could:

Code:
room_instance_add(rm_system, 100, 100, obj_star);
If I set the objects I want to add to the new room as persistent and use:
Code:
instance_create(100, 100, obj_starSystem);
It works fine.

I have no clue what I have done wrong.

Thank you
Edeyz
 
Last edited by a moderator:
Top