Unity Multiplayer ARPG 2DAI by insthync - 12

NetworkAI

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

Unknown VersionMIT LicenseUpdated 5 days agoCreated on May 28th, 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

  • Change Player Character Entity 2D to Player Character Entity 2DAI
  • 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 Monster Character Entity

  • Change Monster Activity Component 2D to Monster Activity Component 2DAI
  • 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 PathfinderConnections to Four

About AI Lerp and AI Path

Show all projects by insthync