Computer Science Canada

Help Needed - Mouse clicking registering only after 2 clicks

Author:  pttptppt [ Mon Feb 20, 2017 10:26 am ]
Post subject:  Help Needed - Mouse clicking registering only after 2 clicks

What is it you are trying to achieve?
Board game style game. Each click is used to move the person on the board. But every other click is for the opponent (2 person game). I still have a lot to do with the program but Im stick with the following problem:


What is the problem you are having?
Each click is for some reason using the loop twice or something. Which means it's skipping the other person's turn.


Describe what you have tried to solve this problem
I tried changing how much the counter increases by but it didn't work.


Post any relevant code (You may choose to attach the file instead of posting the code if it is too long)
I attached a file (hopefully, it's my first time here and it's kind of confusing


Please specify what version of Turing you are using
Latest

Author:  pttptppt [ Mon Feb 20, 2017 10:52 am ]
Post subject:  Re: Help Needed - Mouse clicking registering only after 2 clicks

Same problem but i changed the code a bit. Basically, now the odd # clicks are green's move and the evens are blues. But it seems that the second click always erases the first even though they have different arrays which is odd

Author:  pttptppt [ Mon Feb 20, 2017 3:18 pm ]
Post subject:  RE:Help Needed - Mouse clicking registering only after 2 clicks

UPDATE: I fixed this problem. I have a new question but ill ask in a new thread


: