I'm trying to make a character selection screen with two players.
I basically need two rectangles hovering over a grid to select the chosen play.
You can think of a grid composed with the following elements:
Each texture rect is a character avatar, and I use the focus texture of the texture button to overlay a selection rectangle above each texture.
Right now i'm facing two problems:
-How to program the two keyboard inputs separately.
-How to grab_focus() of two buttons simultaneously.
For defining which player pressed which button I am doing:
Global.Player1 = playerObject
Global.Player2 = playerObject
pass # Replace with function body.
I hope I have been clear.
Thanks in advance.