'How do I make my pieces move and implement the jump mechanic in American checkers using Make Code Arcade?

I'm fairly new to coding, and I wanted to create an American checkers game in Maker Code Arcade.

I started of by creating an 8x8 tile map using the Tile map extension and creating a movable sprite which would serve to select which ever piece I would like to move.

Code in graphical editor

I then created two functions called player1 and player2, both having an image parameter, that would set my sprites image based on the imported image when the functions gets called.

Functions in graphical editor

I then created a function called layout, which would layout my pieces where they belonged. It would do this by calling my player1 and player2 functions and placing them on which ever tile I specified them to be.

Other function in graphical editor

This would be my end result.

end result

But now I have no clue how to move the pieces, how to implement a jump mechanic, or how to create kings.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source