GMS 2.3+ how do i get my character to go to different rooms using instances?

arganaca

Member
how do i get my character to go to different rooms using instances? or is it necessary to create 2 objects?
I can't understand how instances work! Can someone help me?

image: I want my character to touch the blue square with a cross and go to another room, but the object is the same.

I'm new here! sorry if I wasn't supposed to publish this here!
 

Attachments

Nidoking

Member
The easiest way, by far, is to make a variable in the object in the Variable Definitions list to tell it what room to go to. Then, in the Room Editor, you right-click on each instance and set that variable to the appropriate room.
 
Top