The purpose of what I am trying to accomplish is to rid myself of the need to add an object for animations for each collider to any layout. This way I will lessen the possibility for mistakes and my workload in the long run. Plus, this method may come in handy for other things in the future - given some slight tweaks.
Here's the situation. I have a sprite object for my colliders and a sprite object for my animations for my player and enemies respectively. For clarity, from here on I will refer to the sprite object named collider as "Collider" and the sprite object used for animations only as "Animation". Here's what I want Construct to do - my pseudo code if you will...
On start of layout > search objects in a group called "Colliders" on layout > check if any of the colliders on layout do not have their respective Animation > if any missing, create the needed Animation at the position of the Collider that needs it
After this, I will need a way to make sure each Animation follows it's Collider based a tag system.
Here's what I've tried:
I've tried using a string instance var as a tag to identify what belongs with what for Construct. I've also created separate groups for the Animations and Colliders. As of now I can count the sprites of each but that doesn't help me. I figure I need a do while loop and a for each loop to accomplish this but this has been a wall to me for days and I can't find anything on it anywhere. Anyone want to take a crack at it? I think it would be useful for a lot of people in the long run.
Thanks in advance everyone!