Skip to content

Latest commit

 

History

History
50 lines (33 loc) · 2.28 KB

README.md

File metadata and controls

50 lines (33 loc) · 2.28 KB

Unity Grid Based Movement System

Gird Based Movement system in Unity! Comes with a basic AI script that will follow the shortest distance towards the end point.

Built in Unity version 2019.3.12f1

License

Project Note

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.

Getting Started

Downloading the project

  • 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.zip and extract it.

Open the Project in the Unity Hub

  • Open the [Unity Hub] panel.
  • Click the Add Button.
  • 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.

Opening from within the Unity software

  • Select Main Menu -> File -> Open Project within 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.

Running the example scene

  • Open the Assets/Scenes/SampleScene scene.
  • 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 Position button.
  • Watch as your character moves to the position on the grid!

License

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.

Disclaimer

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.