02-23-2024, 04:34 PM
I'm going to share the code I've made because I'm at an impasse and I don't know how to continue.
I have three problems:
1-there is a cursor that moves around the board and if you stand on top of a player's piece and press "z" it picks it up and you can drop it on another square with the "x" key, but the problem is that it drops it anywhere box and I want it to only be able to be dropped in the dark boxes and I don't know how to do it.
2-when I grab a player token you can grab other player tokens at the same time and I only want it to grab one token at a time but I haven't been able to do it.
3-When I have a player token I should only be able to move one square per turn but it can be moved to any square, as could be done.
I have three problems:
1-there is a cursor that moves around the board and if you stand on top of a player's piece and press "z" it picks it up and you can drop it on another square with the "x" key, but the problem is that it drops it anywhere box and I want it to only be able to be dropped in the dark boxes and I don't know how to do it.
2-when I grab a player token you can grab other player tokens at the same time and I only want it to grab one token at a time but I haven't been able to do it.
3-When I have a player token I should only be able to move one square per turn but it can be moved to any square, as could be done.