Avoiding multiple copies of same code

Hi all,

I'm trying to do this: in the designer there are many images (3 in the example), each one inside a horizontal arrangement. The images are clickable, and when the user clicks on one that image disappears, and the background of the corresponding arrangement changes. My problem is the second part. It seems that the variable index, that should store 1, 2 or 3, depending on the image clicked, stays at 0.

On the other hand, I'd be grateful if you could show me some other way to do this, in case there's a better way.

Yours,
Àlex

Don't use red text blocks in those component lists.

Get the last block in each component's blocks pallette for the component block instead.

P.S. I hope you are not color blind.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.