I have this code:

But whenever the shoot message is sent to the bullet sprite, and there is a clone on the stage that hasn't hit it's target yet, the clone will be sent back with the go to x: (xOfTower) y: (yOfTower) block. Is there some way to prevent a clone from receiving a message while the real sprite does?
Clones have their own copy of local variables!
To solve this problem you can add a new variable but be sure to check 'For this sprite only'. Otherwise there will only be 1 variable.

Now a new variable will be created for each clone. Give the variable a value to label it as clone and add a guard on your message action.

There is no way to prevent all sprites receiving the broadcast message. You have to write code to make those that shouldn't act on it, ignore it. In this case I suggest it is easier to do the following:
Suggest moving the two lines
point in direction (directionOfTower)
go to x: (xOfTower) y: (yOfTower)
into the when I start as clone block.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With