Unity Multiplayer ARPG 2DAI by insthync - 12

NetworkAI

AI implement for 2D mode, which implements A* Pathfinding Project

Unknown VersionMIT LicenseUpdated 69 days agoCreated on May 27th, 2019
Go to source

UnityMultiplayerARPG_2DAI

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 ๐Ÿ˜ƒ

Setup Player Character Entity / Monster Character Entity

  • Attach A Star Character Movement 2D to your character entity
  • Attach AI Lerp or AI Path component
  • Donโ€™t enable rotation for AI Lerp or AI Path

  • If you use AI Path, set Orientation to YAxisForward (for 2D games) set Radius and Height fit to your character

Setup map scene

  • Create empty game and attach Pathfinder component

  • In Graph section select Grid Graph

  • In Grid Graph setting, enable 2D and Use 2D Physics

  • Then set Width, Depth, Node size and Center, make it cover the map

  • Set Collider type to Point
  • Set Obstacle Layer Mask by select layers that you want to make it as obstacles

Setup character to move in grid as 4 directions(UP/DOWN/LEFT/RIGHT)

  • Use AI Lerp for characters
  • Set Pathfinder โ†’ Connections to Four

About AI Lerp and AI Path

Show all projects by insthync