Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How do you make npc's use doors?

:lol: hi i want my npc use doors.. i tried to walk him up to the door and the door just never open. i put event touch to the door too but it never really worked :(
 

Gray

Member

Use the set move route event so the NPC walks up to the door and then after that , activate a switch. Make a new event page in the door , with your switch in the top left corner ON , and set move route for the door to Turn left , wait 4 frames , turn right , wait 4 frames , self switch A on , and make another event page with self switch A on , Make the graphic of the door fully open , and just set it to through and the bottom left hand corner , then go back to your NPC , and set move route through the door.

I think that'd work..
 
You don't need a switch for this.

Whichever event you used in the cutscene before the NPC walks to the door, continue on that. Use "Set Move Route: NPC" and make the NPC walk to the door, then "Set Move Route: Door" and make it open.

If there was no cutscene before, make the NPC a parallel processing event, and Set Move Route it to the door, then open the door, and make the NPC leave.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top