Beginner GODOT. Learning the basics and messing around with the engine to learn. I'm trying something out and feel like maybe I'm going about it the wrong way. Here is essentially what I'm trying to do:
Player moves, triggers an enemy to fall and block their path. Then their health pops up above the enemy's head and three cards pop up over the player's head. Each with a random number generated on the card. You click the card and it subtracts the number on the card from the enemy health until it reaches 0 and then they disappear.
I have accomplished almost all of this. I was able to get the move, the trigger, the blocking. The health pops up. The issue is with the cards. I was able to make it so I can instance a single card, that generates a number to the label. And when you click the card, it subtracts the health, and they queue free.
But I cannot figure out how to make both cards work. I currently have it set up that the card has a signal that when clicked, it emits the signal. The main script connects to that signal. But when you create all three, then regardless of which one you click, they all emit the signal and all three cards subtract from the health instead of just the one clicked. I'm assuming there is a better method to all of this.