I'm trying to make a card battle game, for example, I have 2 nodes A and B that represent 2 cards. What I want is that when I click on node A and then click on node B, then node A will attack node B. The attack here is simply subtracting damage from node B. No collision problems at all, just clicking and subtracting HP. So how should I code guys? Please help me. Thank you very much!
Card A vs Card B (Battle Card game)
8 days later
This is too generic, you should read a Godot manual, or provide more exact information.
- Best Answerset by Odin
Can you try this? : https://github.com/AspireMint/CardAB/archive/refs/heads/main.zip
In this demo project you will see use of instances, signals, globals (singleton). Hope it helps you.
AspireMint Yeah! Although I don't quite understand your example. But I found it to be quite effective. I will read it carefully. Sincerely thank you very much.