Page 2 of 2
Re: spawnzones.lua - Make your setups actually work
Posted: Wed Aug 26, 2020 1:08 am
by Emral
Hammerless Penguin wrote: ↑Sun Aug 23, 2020 5:14 pm
Sorry if this sounds like a dumb question but how do you use this? I placed the blue sizable block where I want my npcs to stay onscreen but nothing happens. Can you give a better example how to use this like how it is used in the editor?
All NPCs in the zone stay spawned for as long as the player is also in the zone. Thus, place the zones in such a way that it encompasses NPCs that are offscreen when the player enters it.
Re: spawnzones.lua - Make your setups actually work
Posted: Thu Aug 27, 2020 11:34 am
by MrDoubleA
Is there a specific reason that this only checks if an NPC is off to the left or right of the screen and not the top/bottom?
Re: spawnzones.lua - Make your setups actually work
Posted: Thu Aug 27, 2020 11:54 am
by Emral
MrDoubleA wrote: ↑Thu Aug 27, 2020 11:34 am
Is there a specific reason that this only checks if an NPC is off to the left or right of the screen and not the top/bottom?
... I was wondering why it didn't work in certain situations....
Fixed, thanks.
Re: spawnzones.lua - Make your setups actually work
Posted: Wed Oct 14, 2020 10:03 pm
by JayTheUnwise123
Is this still not compatible with 2P? Also, what exactly happens when attempting to use it in 2 player?
If it's still mostly functional I would hate to waste your time asking to make a fix.
Re: spawnzones.lua - Make your setups actually work
Posted: Tue Oct 20, 2020 2:02 pm
by 55jedat555
So for some reason trying to spawn in an npc that's outside of the section boundary only works in section 0. I wasn't really able to tell what would be causing this by looking at the code, so I'm assuming it's a redigit thing?
Re: spawnzones.lua - Make your setups actually work
Posted: Sun Oct 25, 2020 6:51 am
by MrDoubleA
55jedat555 wrote: ↑Tue Oct 20, 2020 2:02 pm
So for some reason trying to spawn in an npc that's outside of the section boundary only works in section 0. I wasn't really able to tell what would be causing this by looking at the code, so I'm assuming it's a redigit thing?
NPC's can only spawn in if they're in the same section as the player, and NPC's outside of any section bounds will default to section 0.
Re: spawnzones.lua - Make your setups actually work
Posted: Mon Oct 26, 2020 8:53 am
by 55jedat555
Well, guess that makes sense. I didn't know that.