-
Quick "ForEach" question
I'm doing an always "foreach" loop for an enemy's Shadow. Because I'm pairing it with the enemy Sprite.
Can I use "on for each loop"?
Or do I have to use "on for each loop for object shadow" ? Which seems redundant since I've already specified when I started the loop that I want to do a loop for shadow.
-
I think you have to do the seemingly redundant one but I'm not sure why this is. I've always had to use on for each loop for <INSERTTHINGHERE> to get it to work. I also got this to work where I did a loop for a qualifier and then specified an object under that qualifier in the actual on for each loop condition.
-
You don't need any loops. Just say "always: shadow-> set position at ... enemy"
-
MuddyMole is correct, just make sure to destroy a random Shadow whenever a Sprite is destroyed.