Downtown West Modular Set now available for free

2D Navigation Template

Lifeworks Games - Dec 27, 2020

This is a full 2d Grid-based navigation system with Npc Ai that can navigate it independently with different behaviours.

  • Supported Platforms
  • Supported Engine Versions
    4.26
  • Download Type
    Complete Project
    This product contains a full Unreal Engine project folder, complete with Config files, Content files and .uproject file, which can be used as a template to create a new project.

I needed a 2d Grid-based navigation system for a game I'm making myself, but it didn't exist and it can't be done with base engine components like the NavMesh.


That's why I made this.


It's meant for projects that use tile-based, 4-directional navigation (up down left right), across which AI can move Npc's. This is fully controlled via blueprints, rather than the navmesh and character movement component which don't allow for this type of grid-based movement.


Technical Details

Features:

  • Fully made in Blueprints.
  • It's very fast and can handle multiple Npc's and the Player moving at the same time easily.
  • The pack contains an example map made made with the available tiles.
  • Has a Player Pawn that navigates terrain in the same way (WASD or arrow controls).
  • Npc's will avoid moving over each other and the Player.
  • Different navigation behaviour over terrain like Swimming tiles, One-way tiles and Obstacle tiles.
  • AI moving around static obstacles and prefers to avoid Swimming/Obstacles over other, slightly faster but longer routes.
  • Does not contain Behaviour Tree. Can't get that to work smoothly with the Navigation.
  • Easy input of new locations, already connected to an example Database.
  • Outputs added to allow you to customize behaviour and fully control animations.
  • Easily enable/disable the ability of an Npc to move over specific tiles.
  • Made in Unreal Engine 4.26, though will likely work in older versions too.


Number of Blueprints: 3 (Npc, Player, Navigation Broker)

Input: Made with Keyboard inputs, but you're free to change it.

Network Replicated: No.

Supported Development Platforms: All.

Documentation: Most info is in the comments. If there are any questions, feel free to contact me.