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.

Populating a town?

Hello,

I'm somewhat new. I've played around a bit with XP. Made a dungeon, boss fight and a few other things (I know - not very impressive). Anyway, I'm trying to build a town now. I put the whole thing together, but how do I populate it with NPCs? Basically have people walking around (either randomly or patterned)?

Thanks.

(if this is a scripting question - I apologize)
:neutral:
 

Tindy

Sponsor

Scripting? Heck no. 

Step 1: Make an event.  Pick a character for the event (under "graphic".)  Next to "graphic" you'll see "autonomous movement."  Select "random" and pick a speed.
Step 2: Do that again, but with a different graphic.
Step 3: Repeat.  Serves 1-900.

You can type what people will say when you action button them by adding an event command ("Show Text"), or add a sound effect the same way ("Play SE").  You can also make it so that they'll approach you, or walk away from you after you talk to them ("Set Move Route").

Ta-da! 

EDIT: Oh, and vary it up.  Shop keepers oughtn't move very much, and people talking to each other won't move either.
 

Tindy

Sponsor

That's for XP.  It's not a button - it's in the lower lefthand corner of the event box. It's a big white box and it says "graphic" above it.

EDIT: Well...middle lower left.
 
If they're just wandering around until you talk to them, it's less laggy than if events are running the whole time.  Also, while it's unlikely that very many people will have a chance to make this particular mistake, having a parallel process event checking dozens and dozens of conditional branches at once can also be rather laggy.
 

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