Hey guys,
I’m trying to make a chess game, and am having quite a bit of trouble figuring out the best way to move chess pieces in their correct “movements”, while still making sure they can’t move to a previously occupied space, or off the board. I have thought about physically moving the chess piece, and that seemed like it would be ineffective in my project; I also considered having a “Game Manager” keep track of what is in use, and what isn’t, but I couldn’t figure out a clean way to do it. I am still open to any of my previously mentioned methods, as I am sure I don’t know about every feature Unity has packed into its version of C#, and could have forgot about something! If you guys have any other ideas, or can think of some way to get my perviously mentioned ideas to work, I will be very grateful!
Thanks for all your help, guys! Remember, every comment can help! ∆ Gibson
Hey Nerull22, thanks for the tips; I have never used an array before, and I don't really know what it does, but I will look into it! And, you can move chess pieces backwards, with the exclusion on the pawn, it must move forward (or diagonal, if it is taking another pawn).
– AVividLightOh yeah....guess I didn't really think about it. Best of luck to you.
– Nerull22Thanks for all your help, Nerull22!
– AVividLight