Completely refractor the project so the code isn't so terrible #7

Merged
CactiChameleon9 merged 39 commits from card-rework into main 2022-08-24 09:51:59 +01:00
Showing only changes of commit 3f2281a155 - Show all commits

View File

@ -69,5 +69,15 @@ func add_input_dice_view():
$"%AutoGrid".add_child(dice_view)
# this is run once the card emits card_removed
func card_view_run():
# play the using animation
$AnimationPlayer.play("Fly Off")
yield($AnimationPlayer, "animation_finished")
# remove the card completely once used
queue_free()
func connect_signals():
card.connect("card_removed", self, "card_view_use")
card.connect("card_removed", self, "card_view_run")