Uploaded June 2011 | Updated September 2026, 3 weeks ago
An easy tutorial showing how to add room switching in your game. Basically like something you would see in an untitled story or knytt. Also, you will need to have "Advanced mode" on for this tutorial to work.
Code used in this tutorial:
Room creation code:
location = instance_create(0,0,obj_location)
with (location)
{
north = -1
south = -1
east = room1
west = -1
}
Player Outside room code:
Youtube won't let me paste this code because of some of the symbols, so I took the liberty of pasting it here pastebin.com/1QmWpsys
An easy tutorial showing how to add room switching in your game. Basically like something you would see in an untitled story or knytt. Also, you will need to have "Advanced mode" on for this tutorial to work.
Code used in this tutorial:
Room creation code:
location = instance_create(0,0,obj_location)
with (location)
{
north = -1
south = -1
east = room1
west = -1
}
Player Outside room code:
Youtube won't let me paste this code because of some of the symbols, so I took the liberty of pasting it here pastebin.com/1QmWpsys










