Here're a couple of demos of my own. First, a reminder of what I'd like to do:
To have a means of identifying each particular cat at the point of placing them on the layout.
I can do that in JavaScript (or any OO language) by giving each a unique instance name e.g. 'centreCat'.
I can't see any way of doing that in Construct 2. That's why I call any way of achieving the same outcome a 'workaround'.
This capx shows one workaround (following suggestions by Kyatric and Yann) - and one example of why I need to have a means of identifying a particular cat at the point of placing it on the layout. (Thanks again to Kyatric for his graphical interpretation of my verbal description!)
When the game is reset (e.g. when the game is over and we want to play it again), I need to revert to making the centre cat (black) the favourite, by setting its 'favourite' Boolean instance variable to 'true'.
Hence my need to be able to identify that cat at the point of placing it on the layout. And hence this workaround:
Give each cat an additional Boolean instance variable: 'colour'. When resetting, use the 'colour' Boolean to pick the centre cat and set its 'favourite' Boolean to 'true' (having reset all the others to 'false').
This capx shows another workaround (following suggestions by Ashley and Yann): At the outset, I save the centre cat's UID in a global variable 'CentreCatFavourite'. When resetting, I pick that cat instance with its UID and set its 'favourite' Boolean to 'true'.
Thanks again for bearing with me!