- Home /
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...
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.
Answer by nate_walt · May 15, 2015 at 06:16 PM
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.
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
3D Grid Movement 1 Answer
Road/path creation on tile grid 1 Answer
How to make a player move along a fixed route 1 Answer
Getting Valid Moves On A Grid 1 Answer