Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Game is great! :)

I'm wondering how you made that cards bar.  I'm trying to make something similar, like in Hearthstone, or Slay the Spire. But I have no idea what to use for card images. Treat them as UI, and use texture rects, or treat them as 2d sprites? How to scale them, shuffle, ...

Could you tell me how did you approach that? I would appreciate it very much! :)

Thank you:)

We treat them as 2d sprites, and knowing the size of each card, we can compute their position. By default the cards are scale down, and when the mouse hover signal is triggered, the scale is increased.

I think it's possible to have the same effect with UI and TextureRect, but for me Godot's UI isn't very intuitive^^

The shuffle is just an animation using AnimationPlayer. And the animation where the card go to the discard from the hand is made using script. 

I hope it helps.

Thank you very much! :))