Chess piece movement

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
napyfak

Chess piece movement

Post by napyfak »

Hi,
I'm making a chess game with irrlicht, i've already created the chessboard and the pieces and i've imported them to irrlicht, now my problem is to move them!
i want to click on each piece and allow the user to move the selected piece on another position on the board.
How can i do this?????
evo
Posts: 96
Joined: Mon Jun 27, 2005 6:46 pm
Location: The Netherlands

Post by evo »

Calculate the new endposition of the chesspiece and create a 'FlyStraightAnimator'
Heizi
Posts: 30
Joined: Mon Oct 10, 2005 11:23 am
Location: Steinach/Baden

Post by Heizi »

May be this helps you:
http://irrlicht.sourceforge.net/phpBB2/ ... ght=#27996

you could use this ray for getting the IScene Node of the chess
pieces (or the board) with the collision.
Post Reply