Gird Based Movement system in Unity! Comes with a basic AI script that will follow the shortest distance towards the end point.
This is not a completely finished example. There are still small bugs to be worked on and parts of the example to be finished. It is however, a basic working example of getting a character to move from Point A to Point B. Almost Perfect for building your turn-based rpg games.
- Download this project repository to your local machine using one of the following methods:
- Git clone the repository with 
git clone https://github.com/Bigbudddo/unity-grid-movement.git - Download the zip file at 
https://github.com/Bigbudddo/unity-grid-movement/archive/master.zipand extract it. 
 - Git clone the repository with 
 
- Open the [Unity Hub] panel.
 - Click the 
AddButton. - Browse to the local directory where the repository was downloaded to and click 
Select Folder. - The project will now show up in the Unity Hub project window.
 - Select it and the project will now open within the Unity software.
 
- Select 
Main Menu -> File -> Open Projectwithin the Unity software. - Browse to the local directory where the repository was downloaded to and click 
Select Folder. - The project will now open within the Unity software.
 
- Open the 
Assets/Scenes/SampleScenescene. - Play the scene in the Unity Editor (
CTRL+P). - Use the input fields at the top left of the screen to give an X & Y coorindates.
 - Hit the 
Move to XY Positionbutton. - Watch as your character moves to the position on the grid!
 
Code released under the MIT License, which means you can use it pretty much however you like! However, I would appreciate a little nod of appreciation if my code helps you.
These materials are not sponsored by or affiliated with Unity Technologies or its affiliates. "Unity" is a trademark or registered trademark of Unity Technologies or its affiliates in the U.S. and elsewhere.