I am trying to program a board game like checkers but with diff rules
and i want to start step by step
first i made the board and the pieces using 2D
now i want to choose a piece and move it anywhere at first
the problem is how to connect the click of the mouse with the piece
note that x and y for the mouse click computed in pixels
and the piece uses x and y coordinates of the ortho.
My code is in the Attachment.
thanks .


Sign In
Create Account


Back to top









