0 votes

background: I'm converting a JQuery card game into an Android game using Godot. Although I can do the math to position my cards dynamically (eg when a player goes from 3 cards in hand to 10), I'd prefer to just add TextureRects to the scene in code and let the engine handle the positioning for me (you know, the way HTML does or any of the various server side coding frameworks.)

Does Godot have a Flow Layout setting or control? (Which one is it or how do I use it?)

Thanks

in Engine by (25 points)

1 Answer

+1 vote
Best answer

The GridContainer is close, maybe even closer to what you traditionally use for a card game layout then flow?

by (911 points)
selected by

thank you for answering this question. If you're still willing to help, now that I've seen how to use this for creating a hand, is there a way to add a background color for the size of the rectangle? The "Material" property comes closest to what I expect, but it's not as simple as just picking a color, the way I would in HTML/CSS. Thanks

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.