I'm building an engine to populate a layout with instances by using an array that contains instance X and Y, opacity, visibility, etc.
Instances are connected between them and array also contains their connections in a way that if I click on an instance, the related instance will flash. This is determined by the column called Next in the json. In this case, Instance 1 flashes Instance 2, Instance 2 flashes Instance 3 and
Instance 3 flashes Instance 1.
So far, I was not able to build this connection between sprite. My attempt is line 5 and 6 of the code.
I'll be grateful if someone could help me with this.
Also : I'd like to have more than one connection between instance. For example, instance 1 when clicked flashes instance 2 and 3. I thought about populating the array with strings like "2,3" but don't know how to parse them.
C3p can be found here https://www.dropbox.com/s/lyvoap25so4bs6p/SpriteFromArray_Test.c3p?dl=0