So I’m still learning how to script in Unity3d, but have gotten to where I am alright at it with typical character movement, but I’m wanting to learn how I could make like a chess or checkers like game in Unity3d using JavaScript (OR) C#. But I’m having issues getting anything I’ve tried to work. Could someone help me out?
What I’ve been wanting to do is…
- Be able to select and deselect a character using the mouse(0) button.
- Have the character move to the center of the tile that the player clicks on.
- Only allow movement of the selected character within their movement range.
- Movement would be from tile to tile so if the character started at 0, 0 and the player clicked on 5, 4. The character would walk to their destination using tiles passing through the tiles centers. (i.e.) 0,0 - 1,1 - 2,2 - 3,3 - 4,4 - 5,4.