Luyren's AI and Combat Pack

Luyren

  • *
  • Posts: 2682
After some discussion on Stencyl's Discord server, I was inspired to add a feature to the ​Actor Registry ​behavior to sort the Z-order of actors on a per layer basis. This is useful for top-down games with orthogonal persepective, and allow your actors to convincingly move through objects without weird overlaps. Think of it like in Zelda games, where Link can be behind or in front of fences or other characters, for example.

This behavior also had some performance optimizations. To get this update, redownload the pack. If you want to update an existing game, the best option is to remove the old pack and all its resources, and import the new version. An alternative is to import the pack into a separate game, export only the ​Actor Registry ​behavior and replace the old version from your game.

As always, you can get it here: https://luyren.itch.io/luyren-ai-and-combat-pack
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Luyren

  • *
  • Posts: 2682
New Update:

Overhaul of the Die When 0 Health behavior. It now features extra lives, with option to set sequence of events when the actor dies with extra lives, with no lives, when it revives and even when it dies with a specific number of extra lives. It also has a new custom block to modify the current and maximum number of extra lives for your actor.  The documentation on that behavior has also been update, with some death event configuration samples and explanations of what they do.

The Simple Pick Up behavior now includes an event for extra lives, and actors with that event are included in the sample game as well.

The AI behaviors related to movement can now detect semi-solid actors through the Actor Registry behavior.



As always, get it here: https://luyren.itch.io/luyren-ai-and-combat-pack
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

Luyren

  • *
  • Posts: 2682
I've updated the pack with a performance update. Luckly, you can apply this update to games that already have the pack imported, and it's all explained here: https://luyren.itch.io/luyren-ai-and-combat-pack/devlog/254955/performance-fix

This should improve performance on big scenes with a lot of enemies. This was mostly an oversight on my part, and I apologize for it.
My Stencyl resources are available here: https://luyren.itch.io/
Cutscenes, RPG Elements, Particles, Map System and many more.
Twitter

tabletop

  • Posts: 379
Very good I’ve checked back at this. Performance is much better on big scenes. My story is growing