I had no idea that was an option to make the sprite a child of a Control node! I tried it quickly and it works, next is to see if it makes things easier or harder. After I made the post yesterday, I tried both and I think I might stick with sprites and position it through scripting (calculating the centre of the container) as opposed to using the container itself.
someguy12

- Jan 15, 2018
- Joined Jan 14, 2018
- 0 best answers
- Edited
Hey all, I've been testing my hand at Godot the past 2 weeks or so. I've been through 2 or 3 sets of intro tutorials and feel like I have a decent grasp of the basics. I've been trying to build a card game to test myself but I have an issue that's plaguing me. In terms of arranging the cards on the screen, are sprites better to use or texture rectangles?
Sprites don't play well with containers which is what I had used to build the structure of the game screen. But they can be animated which I was thinking might be useful (putting the card facedown, for example). Maybe I'm going about it the wrong way.
I already have much of the logic coded and working at the console, but I wanted to figure out the graphics stuff before investing more time in the logic lest it be for naught.