You want to have an instance variable on each instance that ddetermines what happens when you interact with it.
Hey, I'm afraid this isn't an option, as each card is created via events, I'm making a card game, I just want a generic event so when the user taps one of the cards it flips,
if I use instance variables this would be very tedious as I would have to repeat my code for each object i.e
if touched card and ID = 1
play animation
if I had to do this for 100 cards this wouldn't be very ergonomic.
Do you know why my previous event with the for each doesn't work?