@Bob:
Excellent! That NPC hug-wall script is going to be super handy. Guess I'll toss all my enemy patrol pattern scripts haha. It's great to hear that this works with avoid zones, so many things are now easily possible.
How is Built-in Chase Scripted?
Moderators: marionline, SDHawk
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
⊕ 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
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
I was thinking about wall/zone following for movement patterns, and I should probably add an additional movement pattern variant of it that just stops and holds still when it collides with a hero or another NPC, rather than trying to skirt around them.
That way you can make movement patterns that won't be messed up by the hero or by other randomly walking NPCs.
That way you can make movement patterns that won't be messed up by the hero or by other randomly walking NPCs.
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
I think this would be great. It would also be useful for puzzles where the patrolling NPC can be temporarily blocked by something like a push-box that the player has positioned.Bob the Hamster wrote:...I should probably add an additional movement pattern variant of it that just stops and holds still when it collides with a hero or another NPC, rather than trying to skirt around them.
That way you can make movement patterns that won't be messed up by the hero or by other randomly walking NPCs.
⊕ 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
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
I was thinking exactly the same thing. Of course if two such NPCs collide with each other head-on they'll be stuck there forever (unless you push one of them), but I think that's fine.Bob the Hamster wrote:I was thinking about wall/zone following for movement patterns, and I should probably add an additional movement pattern variant of it that just stops and holds still when it collides with a hero or another NPC, rather than trying to skirt around them.
- Bob the Hamster
- Lord of the Slimes
- Posts: 7660
- Joined: Tue Oct 16, 2007 2:34 pm
- Location: Hamster Republic (Ontario Enclave)
- Contact:
Yeah, I am fine with that.TMC wrote:I was thinking exactly the same thing. Of course if two such NPCs collide with each other head-on they'll be stuck there forever (unless you push one of them), but I think that's fine.Bob the Hamster wrote:I was thinking about wall/zone following for movement patterns, and I should probably add an additional movement pattern variant of it that just stops and holds still when it collides with a hero or another NPC, rather than trying to skirt around them.
You can also get a "Avoid You (Direct)" NPC stuck permanently in the corner pretty easily, but I am fine with that one too.
Maybe we could use a "Walk Ahead Until Stuck" movement type too.
I think that could be useful. E.g. an object (spawned by a tag change) which falls from the ceiling. I mistakenly thought you'd already implemented this!Maybe we could use a "Walk Ahead Until Stuck" movement type too.
(And for anyone following along: James did add the "Follow walls (L/R) stops for others" variants)
Last edited by TMC on Sat Apr 01, 2017 10:56 am, edited 1 time in total.