In this post, I want to create a “pause” menu that pops up when the player presses the esc key on their keyboard. This will be the first foray into “UI” in this series. Hopefully this will be simple and easy!
As it stands right now, the player can move units from one land tile to any other land tile in the game. I want to make it so that the player can only move their unit to an adjacent tile. Basically, I want it so the player can only move a distance of 1 tile away from their current position.
In my previous post I mentioned that I next want to…When multiple units of the same type are on a tile, I want those units to “collapse” into one unit, and text to display something like “x2”
Last post I created some land tiles and aligned them in a grid/map of sorts. This post, I hope to get units to be able to move on those tiles when the player clicks on them.
In this post, I plan to do the following:
1.) Add a new unit type: a tank
2.) Create land objects that the units will move on
In my first game dev blog post, I showed how to select an object when you clicked on it. In this post, I’ll make it so when you click on an object, that object is “highlighted” to show the player what objects they have selected.
I wanted to also create this GameDev Blog to document my progress making this game in Unity to 1.) Reinforce what I was learning in Unity by making myself describe what I was doing, and 2.) Hopefully provide some useful information to any other would-be game makers out there on how I figured out how to do things.