I have a for loop, I need this working asap so help is greatly appreciated. I need to spawn one or both of two sprites on top of every instance that's in the family "Segments". Here's the setup I have:
For every Segment
->check if the Collision instance variable is < 900 and if SegmentCollision (a local variable meant to stop the loop) is less than the max value
-->check if the amount of image points is 2 or 3
----> if 2, spawn one Platform Collision and set its animation frame to the Segment's Collision instance variable
----> if 3, spawn one Platform Collision and one Platform Collision and set both their animation frames to the Segment's Collision variable
That's all I want it to do, check what to spawn, spawn it, then set its frame to the Segment's instance variable. It just has to do it once for each segment. Can anyone help?