Gameboard with Keyboard Controls
I'm am making a small roleplaying game, and I'm stuck at the point where I have to make a game board.
A simple way to explain what I'm seeking is: Imagine a chessboard where you move a piece with the keyboard keys. If anyone has an idea I would love to see a piece of samplecode on how to do this in a good way.
Thanks on beforehand :)
Re: Gameboard with Keyboard Controls
It depends exactly what you want but I would guess that the easiest way would be to make your board the background image of the form and then make the pieces controls that you can select and either move via the keyboard or the mouse with drag-and-drop. Each piece could be an image in a PictureBox which could have its Location property manipulated to move it around the board.
Re: Gameboard with Keyboard Controls
Thanks, my main problem atm is that I dont have any experience with keyboard controls. Anyone have some small piece af sample code I could look at??
That would help alot, thanks :afrog: