Go into GameMaker and create a sprite. Call it SprDoor. Create an object door Go to your main playable character and in the events section create a collision with object door. Add the blocks shown above.