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