Thanks for taking the time to answer!
Since you have to manually place the image points yourself anyway, why not add 2 instance variables to the sprite and store the count for left / right image points there?
Great point, and it's what I've ended up doing but it does feel a few steps removed from what I'm trying to achieve.
Can you give any more information about what you're attempting to create? Perhaps we can find a better way to do it :)
What I'm trying to create is an easy way for me to quickly specify where I want specific objects to be created based on a sprite. I want to be able to do this in as few steps as possible since I will need to repeat this for each sprite of this type that I add.
What I'm looking to achieve:
• I have several sprites representing spaceships.
• Each spaceship has a number of spots where I want to create certain effects like turrets, thrusters, weapons, and so on.
• By setting up image points on each sprite, named in a structured way I hoped to be able to create these effects by referencing the image points by name.
Here's a screenshot of what I have right now. The main issue is the Repeat condition. Currently it's manually set to 2. Ideally it would be dynamic based on the number of image points that match a criteria.
I'm totally open to other ways of achieving this. In my head, the imagePoint method just seemed like it would require the least steps.