In English, what you are trying to do is just make sure one position on the map is selected at a time. So, in the code, you’ll want to clear all selections when the user clicks. Then you want to make sure only one position is selected. You are using a field of buttons for each one, so when the user selects a tower button. Clear out all the stores first, and then make sure only one is selected.
That example code was showing you the best places to do it. The [icode] oneOnly[mousex][mousey] = true [/icode] loosely translates to your code in this [icode] public void click(int mouseButton) { … } [/icode].
The first one I already knew, cause he didnt made a void, but still posted it without a reason, sometimes I’m kinda useless and ctomni231, I’m going to try that. cause the problem of my code is the else statement with the if