Uploaded August 2021 | Updated September 2026, 3 weeks ago
#unity2dmovement #unitymovecharacter #unitytopdown
In this video I show you a very simple way to move a character by steps pressing up down left and right arrows keys.
I play games here - twitch.tv/zzotoff
You are very welcome :-)
Thank you :-)
Project Here drive.google.com/file/d/18y2bBG2NXkPHVrDpn_FY918t84MOtDcW/view?usp=sharing
Here is my empty project. I set it up quickly. First I add a cell. Duplicate it and put it with a step of 1.75 to the right by X axis. That will be a distance of one step in my case. Duplicate it again and put it to the right with another step of 1.75. And so on. Duplicate a cell and position it using that step. Duplicate the whole row and put it here. Duplicate it one more time and put it here. A kind of board is ready. Now to organize my hierarchy a bit I create a new empty. Rename it as cells. Reset its transform. Select all of my cells and D&D them in this cells game object. Great! Next game object is a character. To make it appear in front of my board I set Order in layer to 5. Character will have a script. Here it is. This script helps me to move my character by steps. So when Up Down Left or Right arrow button is pressed my character makes a move in corresponding direction with that step ща 1.75. Pretty simple. Script goes to character. Now let’s hit play and see how it works. I press arrow keys and my character makes his moves.
#unity2dmovement #unitymovecharacter #unitytopdown
In this video I show you a very simple way to move a character by steps pressing up down left and right arrows keys.
I play games here - twitch.tv/zzotoff
You are very welcome :-)
Thank you :-)
Project Here drive.google.com/file/d/18y2bBG2NXkPHVrDpn_FY918t84MOtDcW/view?usp=sharing
Here is my empty project. I set it up quickly. First I add a cell. Duplicate it and put it with a step of 1.75 to the right by X axis. That will be a distance of one step in my case. Duplicate it again and put it to the right with another step of 1.75. And so on. Duplicate a cell and position it using that step. Duplicate the whole row and put it here. Duplicate it one more time and put it here. A kind of board is ready. Now to organize my hierarchy a bit I create a new empty. Rename it as cells. Reset its transform. Select all of my cells and D&D them in this cells game object. Great! Next game object is a character. To make it appear in front of my board I set Order in layer to 5. Character will have a script. Here it is. This script helps me to move my character by steps. So when Up Down Left or Right arrow button is pressed my character makes a move in corresponding direction with that step ща 1.75. Pretty simple. Script goes to character. Now let’s hit play and see how it works. I press arrow keys and my character makes his moves.










