Create a 2D grid movement player controller script in Unity

Описание к видео Create a 2D grid movement player controller script in Unity

For any tile based game you need your player object to snap between points rather than having free movement. This tutorial shows you how to do this within Unity. This will be great for an RPG game, a simple 2d puzzle game or anything in between.

We implement two different use cases of grid (or tile) based movement with a script in Unity. In the first you need to press a key for each movement, and in the second we allow you to hold down the key to carry on moving.

This tutorial covers topics such as: tiling sprites, the Func type for assigning functions to variables, the differences between GetKey and GetKeyDown and Coroutines.

Full code is available on GitHub: https://github.com/Firnox/GridMovement/

Contents
0:00 Introduction
1:40 GridMovement script
6:00 Final changes and testing

Комментарии

Информация по комментариям в разработке