Player select menu

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By shishyando

Hello everyone <3
I’m new to Godot and I’m trying to make a player select menu (something like in mortal combat). What I need is a menu with icons of characters and labels like player1 and player2. Really don’t even know what node to use. Could you help me out? Thanks in advance :slight_smile:

:bust_in_silhouette: Reply From: deaton64

Use items under the Control tree.
But maybe search as well.

Google results

Design and Code a Title Screen in Godot 3 (tutorial)

UPDATE: 14/07/2020
Even easier, shove the buttons in a GridContainer (never knew that existed :slight_smile: )
UPDATE: 12/07/2020

I think you can still do it with controls. I grabbed some images from Kenny and put them into a simple grid. There’s one line of code that grabs the name of the button chosen.

Here’s the code That’s how I’d do it. Might not be the best way, but it works.

Here’s what it looks like:

enter image description here

I gained some useful information (thanks for that :smiley: ) but it’s not really what I need. I need something like a grid with icons and labels for selected cells. Tried to google it and found some stuff like buttons or popup menus but not the player select menu. I guess I should use something like ItemList node but I’m not quite sure how to change the visual part of the whole thing (like adding Icons, labels and so on).

shishyando | 2020-07-11 16:52

Yes you can do that, the controls will let you do what you want.
A vbox, containing hbox items will create a grid.
What caught me out was not setting the minimum size of an object, so the control knows how to space things out.
What’s the destination platform you want your game to run on?

deaton64 | 2020-07-11 19:56

It seems that an ItemList can do what I need, still trying some things with it. The destination platform is PC.

shishyando | 2020-07-11 20:17

I’m about to edit my answer, as I still think it’s the way to do it.

deaton64 | 2020-07-12 09:34

:bust_in_silhouette: Reply From: Dudedude123

Here you go