Destroying Two Matching Actors Randomly Spawned from Two Different Tables
I hope this message finds you well!
So, I'm trying to create a prototype matching game and I'm unable to figure out how to get the last component to work.
I followed the YT video: https://www.youtube.com/watch?v=J-60AF68Bxc so that I could spawn four non-repeating actor images on the right side of the screen. Then, I created a second table so that a fifth actor on the left side of the screen would spawn a random image.
Now, what I'm having difficulty doing, is destroying the matching actors. I want to destroy both actors when I drag the matching actor from the right to the one on the left. I am able to drag the actors, so I don't need help with that piece. It's just that once they collide, they are not destroyed. I've managed to destroy the one on the left, but the one I'm dragging isn't destroyed. I tried an attribute stating that if the current left image was equal to the current right image to destroy them... but that didn't work, though at that point I wasn't thinking it would, but I was desperate lol
I'm not sure how to have them destroyed based on the image. Perhaps I went about it all wrong from the start and I made it over complicated. I am new to GS, so while I am able to figure out how to destroy actors based on colors,or to simple have one collide and destroy, I'm not sure how to destroy them using tables. I've tried finding tutorials on YT and googling, and even searching the forums here. But I've been unable to find the answer.
I really want to move on from this prototype, but I really want this to be a learning experience and I don't want to give up. If I need to provide images or something else specifically please let me know.
Thanks so much in advance! Take care,