Git Product home page Git Product logo

unity-grid-movement's Introduction

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.

unity-grid-movement's People

Contributors

stuartaharrison avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.