This is document for older version (1.0) which work with MMORPG KIT version below 1.46
AI implement for 2D mode, which implements A* Pathfinding Project
Their package files will not included in this repository, visit their site to download it :)
- Change
Player Character Entity 2D
toPlayer Character Entity 2DAI
- Attach
AI Lerp
orAI Path
component - Don't enable rotation for
AI Lerp
orAI Path
- If you use
AI Path
, setOrientation
toYAxisForward (for 2D games)
setRadius
andHeight
fit to your character
- Change
Monster Activity Component 2D
toMonster Activity Component 2DAI
- Attach
AI Lerp
orAI Path
component - Don't enable rotation for
AI Lerp
orAI Path
- If you use
AI Path
, setOrientation
toYAxisForward (for 2D games)
setRadius
andHeight
fit to your character
- Create empty game and attach
Pathfinder
component
- In
Graph
section selectGrid Graph
- In
Grid Graph
setting, enable2D
andUse 2D Physics
- Then set
Width
,Depth
,Node size
andCenter
, make it cover the map
- Set
Collider type
toPoint
- Set
Obstacle Layer Mask
by select layers that you want to make it as obstacles
- Use
AI Lerp
for characters - Set
Pathfinder
→Connections
toFour