Oh ok, I'll fiddle around with that. Thanks! I guess I just wasnt very well versed on the acquire target vs add target.
Thanks. Hadn't thought about doing it that way around. I guess "invisible" was not the best way to put it since that is a technical term. Technically the instance will be within range of a turret at all times and will still be visible but will be interacting with another Sprite. I would like the turret to ignore this instance even if it's the closest target and is visible. Is there a way to target instances with only a certain instance variable? It's a knotty problem.
Hello all,
I have certain things in-game which cause my enemies to be invisible to turrets. It only happens to 1 instance of an enemy sprite at a time. How can I make turrets ignore these instances? Turrets currently always target a family composed of the different enemy types. I tried line of sight work arounds but meh doesn't really work.
Thanks!
Develop games in your browser. Powerful, performant & highly capable.
I have turrets that can be placed by the player in game. From created they target a family named "enemies" which includes several different sprites. Occasionally one instance from a sprite in this family will enter a state where it is immune from being targeted by turrets. How can I make it so that turrets don't target that instance while still attacking other instances of that sprite. I don't really have a capx to post because I haven't the foggiest idea of how to do that. Any ideas?
Thanks
[quote:2zpv2dlp]There is a more elegant solution.
ohhh, that's nice. I like. Thanks!
Just ended up giving each spawn point an event based on their UID. Please let me know if there is a more elegant solution.
Figured out the catapults. Gave them instance variables that determine whether or not they can fire. Perhaps the same thing will help the spawn points
I have 4 instances of a sprite on the left side of my layout. I want them to all spawn an object at the beginning of the level and then each randomly spawn a new object at random intervals.
flickr.com/photos/33703125@N03/40952928805/in/dateposted-public
I also have catapults that will all move with their turret functions and will play their animations but multiple instances will not spawn bullets if another is spawning them. I feel like these two issues are probably related and I feel like I'm missing something important.
flickr.com/photos/33703125@N03/40045140550/in/dateposted-public
Member since 5 Apr, 2018