Okay, first off, I'm sorry if this is the wrong place to ask this and it needs to be in the computers section, but I figured it had to do with Game Maker, a program that is used for making games, so it would be fine here. Anyways...
I'm trying to piece together a platformer game. I've been doing fairly well so far, having figured out general movement, jumping/falling, animations, shooting (mostly), etc. My big issue that I can't seem to figure out is making doors. I want to have doors that work similarly to games like Super Mario World, where you stand in front of them, press the up button, and go to a different area.
I've been learning most of what I've been doing by looking up various engines and how they work, and adapting the different methods into my game. Unfortunately, the doors are something that I still haven't been able to figure out. The only source I could use to figure it out was from scouring the forums on the Game Maker website and even then, I only found a few lines of code with no example or anything. I tried just copy/pasting the code into my game and following the directions to make it work, but it doesn't. Instead of spawning the player in the next room, it just takes the player back to the starting point of the same room.
I figured that at least a couple of the people here are pretty good at working with Game Maker, so I thought I'd ask. Could anybody here please explain to me how to make a doorway between rooms work? I don't have my current version of the project uploaded anywhere, but if you'd like to see what I've got so far, I could get it uploaded somewhere.