2D Hexagon TileMapLayer Navigation Class
by DubiousDuck
7
Hexagon TileMapLayer Navigation Class
This is a Godot plugin that adds a global class that handles navigation on 2D TileMapLayers with Hexagon tiles.
Works for Godot version 4.3 and up.
You can install it via the AssetLibrary in the Godot editor or download the repo on GitHub.
How to Install
- Copy the 'hex_grid_nav' folder to your 'addons' folder in your Godot project
- In Project Settings, under the "Plugin" tab, enable the checkbox next to "Hexagon Grid Navigation".
- You will now see the class "HexNavi" has been added to Global Autoload
How to use
A detailed explanation of the functions available in the HexNavi class can be found in this documentaion
Here are some initial steps to set up the class properly:
- Add a TileMapLayer node to your desired scene
- Set the Tile Shape in Tile Set of the TileMapLayer to
Hexagon
- Call
HexNavi.set_current_map()
at the beginning of your script and use the TileMapLayer you just set up as the input - Congrats! You have successfully set up the navigation system. You can now call whichever functions in the documentation that you see fit.
Check out the example project to see how to use the different functions of the class!
Contact
If you have any questions, comments, and suggestions, please don't hesitate to reach out to oscar517730@gmail.com
Download
Version1.1.1
Download Now
Support
If you need help or have questions about this plugin, please contact the author.
Contact Author