I’ve got many years of programming experience, but I’m brand new to Unity. I’m interested in using it to build a very simple turn based, grid-based tactical combat game (ala Final Fantasy Tactics, Disgaea, XCom, and so forth). I’m finding myself overwhelmed by the sheer number of features and options Unity affords; even finding the right tutorial to learn the basics I’m interested in seems daunting.
I’d really like to learn enough just to get something extremely simple put together that I can start building off of as I learn more about the framework. Just a simple grid that I can move a basic object around on (while restricting movement to squares on the grid) in a turn based structure. All of the documentation I’ve read seems to focus entirely on action games with an explorable world, rather than something turn based on a limited map. I’ve been told that doing a turn based tactical game using Unity shouldn’t be that hard (well, the dirt simple basic version at least ), but I’m at a loss as to where to begin. Ideally, I’d like to get only the most basic of UI components implemented so I can start tinkering with the game logic code, which is more my forte as a seasoned programmer.
Can any of you Unity experts point me towards any documentation/resources that would help me get started, given the type of game I’m interested in making? Any help is appreciated!
Well, first get a grid layout started. I’d use Unity’s world grid for it. Then write some code to allow the arrow keys to move a cube around it at set intervals (as in, each grid space).
Take a look at BurgZerg’s original tutorials → Here. The are not turn based / time based strategy game tutorials but they will give you a good start at getting something together that you need to add the functionality to.
I think he’s refering to just using coordinates that are whole numbers e.g. x: 10 y:0 z:10 would position an object in unitys 3D space 10 units to the right and 10 units into the scene (or is it left?)
This way you could quickly setup a chessboard style grid layout with a simple nested for loop.
Instantiate Cubes for the squares and then just use raycasts to work out which square your mouse is pointing at.
Add in a sphere as a piece and get it to move to the new location.
Add another spehre as the other players piece, setup logic to only allow one piece to move at a time and some gui text to show who’s turn it is next.