How can I make NPCs walk on top of eachother?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

How can I make NPCs walk on top of eachother?

Post by sheamkennedy »

I want to make my NPCs have the ability to walk on the same tile as one another but by default they cannot. Is there an easy way to change this?

The reason I want this is because I'm making a 2 player game in which player #1 controls NPC #1, and player #2 controls NPC #2. I intended to make a collectable item represented by NPC#3 so when the player steps on that item, the item is picked up. The game won't let me do this though since my NPC characters are unable to step on the same spot as the item NPC.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
User avatar
FnrrfYgmSchnish
Metal Slime
Posts: 741
Joined: Thu Jun 18, 2009 4:37 am
Location: Middle of Nowhere

Post by FnrrfYgmSchnish »

Well, "suspend obstruction" script command will let NPCs walk on each other... but that would also let the two player-controlled NPCs walk over top of each other, which I'm guessing isn't what you want to happen.

There should be a way to do this, though. One of the "scripted non-RPG game" people will probably respond with a better answer any minute now... XD
Last edited by FnrrfYgmSchnish on Tue Feb 17, 2015 10:41 pm, edited 1 time in total.
FYS:AHS -- Working on Yagziknian NPC walkabout sprites
User avatar
Feenicks
Metal Slime
Posts: 697
Joined: Tue Aug 10, 2010 9:23 pm
Location: ON THE AIR IN THE AIR
Contact:

Post by Feenicks »

set NPC obstructs should work.
User avatar
sheamkennedy
Liquid Metal Slime
Posts: 1110
Joined: Mon Sep 16, 2013 9:29 pm
Location: Tama-shi, Tokyo, Japan
Contact:

Post by sheamkennedy »

Ahh perfect. Thanks both of you. My player NPCs never come in contact but if I do end up making some NPCs that need obstruction I guess I'll use the later.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Post Reply