Hey!
I'm new to Construct and I've been having an issue with LOS and instance variables in a tank game I'm making.
To put it short, if a tank see's you, a counter will start and when it reaches a certain value, it shoots and resets. I intended for it to not reset after it doesn't have LOS of the player tank anymore.
The problems I'm having are:
a) All of the tanks shoot when the counter is reached. I intended for each tank to have it's own counter and shoot individually.
b) When only one tank has LOS, all of them look at you and they all start counting, even if there is a solid wall between you and the tank.
I've tried using While, For each tank, disabling things that might conflict with each other and a couple more things, but they don't work. If I could have some help, I'd greatly appreciate it :)
Game link:
drive.google.com/file/d/1OJcNFhnqL69nDbmHO9Gp0pqrM7A0F8oR/view