I feel very dumb and I'm not sure what I'm doing wrong now.
I made the change you suggested and now it is only rotating that one tower called "Turn", but it's back to also calling the code on the left click below it.
Here is the relevant code bock:
Here is an image from the game:
So, what should happen is:
- If you left click on an "Obstacle" object (which is not in the Families, "Towers") it will add a new "Turn" object. This currently works.
- If you left click on a "Turn" object (which is in the Families, "Towers") it will rotate the turn. This works now too. But, it's also creating another instance of the "Turn" object.
I need clicking on the "Turn" Object to only kick off that code, even though the "Obstacle" object is right underneath it.
Thanks for any guidance.