Hello friends, this is a piece of a larger game I'm working on. I have it working fine with separate objects, but I know I should be using instances and variables, or instances and then doing it entirely through animation frame matching. I have tried and tried but I can't get it working using either of these approaches. It's easy enough using the method I am using here, but it's very annoying that I'm not doing it properly. Any help is greatly appreciated. Thanks
dropbox.com/s/fzjekbw5asvzyat/only%20hearts.c3p
Basic mechanic:
1) Hearts are created and drop using physics
2) There are empty (faded opacity) heart slots at the top
3) Upon clicking the falling hearts, they are matched by animation frame, and the ones at top become fully opaque
4) When all are matched, it resets
Also, I'm sure there are other and perhaps better approaches to marking them as "achieved", both individually and when all have been achieved - booleans, etc. I'm open to suggestions for sure. I just settled on using opacity since it was easy.