Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Just replace ROOMNAME with what you called your room.
############################################################################################
FATAL ERROR in
action number 1
of Step Eventobj_player
for object obj_door:
Variable obj_door.room_hallway(100003, -2147483648) not set before reading it.
at gml_Object_obj_door_CollisionEvent_2_1 (line 2) - room_goto(room_hallway)
############################################################################################
If player i in room 1
and then the colliding code
Go to room 2.
Then this code for every room so I dont need to create separate doors. So if Im in room 1 it only goes to room 2 and from room 2 it goes to room 3. And if i want my character go back to room 2 or 1 i can create same code but for differend code right? Hope u undertood the idea im sayin
Alternatively, you could add roomtogoto = -1 to the object's Create event, then have it do something like if roomtogoto != -1 { room_goto(roomtogoto) } for the room-changing code, and then right-click the object in the room editor, choose "Creation Code...", and type roomtogoto = room_forest if you want that specific instance of that object to make you go to the forest room. ("Creation code" can be set individually for different instances of the same object, even in the same room, and is run after the object's normal Create event.)
(Or in other words, you could make it store a variable for which room to go to, then set that variable on a per-instance basis.)