Alright, I have no idea what i am doing wrong. But this is basically what is supposed to happen: You pick a spot, a checker checks first the left side than the right side (or vice versa) and if the spot is clear, you can move there. Than the computer goes. Here is what happens:
It works great when you have no other pieces around you. But when I have a computer piece next to me (on only 1 side), it won't let me move. Or if I'm no the edge, I can't moe (going back in). I don't know why. All I know is for some reason it isn't setting the legal_move variable to 1 so you can move. But I don't know why!
And the checker has 1 big if script (go to X Y and if touching something and than again). I can upload it if you need to look at it. The picker and checker (lol, the other two make the setup) are the trouble ones. Look at the parenthesis, those other sprites are just for setup, than "disappear"
Offline
Bluestribute wrote:
It works great when you have no other pieces around you. But when I have a computer piece next to me (on only 1 side), it won't let me move.
Is that because when it is checking the spaces, it sees something there so it doesn't like it, and won't move?
Offline
Dan01 wrote:
Bluestribute wrote:
It works great when you have no other pieces around you. But when I have a computer piece next to me (on only 1 side), it won't let me move.
Is that because when it is checking the spaces, it sees something there so it doesn't like it, and won't move?
I ave no clue. It checks the left side and right side, but if there is something there, it says you ave no moves… wait a second!!!!!!! I think I got it!!!!!!
Offline
Dan01 wrote:
Lol.
Hope your idea works![]()
Oh yeah, it did! Here was the problem:
So, the first worked out fine, going to the right of the piece, but the next, I had an if/else block! So if IT couldn't move there, it would "tell" the piece you can't move! Fixed now
Offline