I have been playing around and was wanting to make a Chess or Checkers game but cant figure out how to drag one piece over the other and make the piece that got hopped disappear? Was wondering if anyone in the Corona community could point me in the right direction? Thanks [import]uid: 66871 topic_id: 12186 reply_id: 312186[/import]
Are you looking for code or ideas on how to do it?
Pieces getting removed, do not happen automatically, you will have to make them invisible or remove them from the board using either isVisible=false or removeSelf
Cheers,
?
[import]uid: 3826 topic_id: 12186 reply_id: 44312[/import]
How right you are. I learned how to create draggable objects and I can remove them if touched. Problem I’m having is figuring out how to define areas of movement to where the game knows if moved here then “white piece” disappears. Or not allowing a piece to move to a certain area.
I’m new at this obviously. Figure if I cant make a simple game of checkers I should give up lol! Just looking for community incite or whatever anyone can throw my way to point me in the right direction.
Thank you for the reply! It will surely help
- jc [import]uid: 66871 topic_id: 12186 reply_id: 44325[/import]