Simple State Machine for NPCs
Goodline Games
$4.99
(no ratings)
Date |
Price |
---|---|
Date |
Price($) |
11/05(2024) |
4.99 |
11/21(2024) |
4.99 |
Jump AssetStore
This is a simple finite state machine.
This can help in setting up simple npcs that need different states.Asset is made using SRP, but it support all render pipelines as it doesnt relies on graphics so far.This package is made for anyone that wants a simple, but customizable and extendable state machine. I have used this template in multiple games and it's easy to use and extend once you understand the principles of it.This package contains a state machine and the following states for testing or using in your own projects:The state machine changes states based on some conditions and a timer, those are customizable for the user.Idle statePatrolling stateCan use waypoints or generate random locations in a zone to patrol toChase stateAttack stateGet hit stateDying stateThere's also gameplay elements such as a health bar and damage text.Also included some debugging information to keep track of what state the NPC is in.The package doesnt include any animations or animation controllers.Package uses Unity's navmesh system