Need help with Chess Like Character Selection and Movement

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…

  1. Be able to select and deselect a character using the mouse(0) button.
  2. Have the character move to the center of the tile that the player clicks on.
  3. Only allow movement of the selected character within their movement range.
  4. 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.

I too have been hunting for chess scripts. ( and learning how to code lol ) These are C sharp but there are the JS scripts too, hopefully they help you.

http://wiki.unity3d.com/index.php/GridMove