'm developing my game in Godot 4 and in my menu, I decided to add button selection using a cursor instead of clicking. After searching the entire internet, I still haven’t found a way to implement my idea. I store my buttons in a “VBoxContainer”. I found online only a way to create a cursor selection system for “Label” but not for “Button”. Does anyone know how to implement my idea? Or is it only possible using “Label” selection?
For an example of the hierarchy in my project, I also tried adding a “Label” for the buttons and tried handling clicks from it, but it didn’t work.
I would be very grateful for any help in solving my problem, including advice, tutorials, and courses! Thanks to everyone in advance!
*Note:
Link to the tutorial for creating pause buttons that I used - https://youtu.be/9dlNkB-QK3c?si=MQwaFbi139q2r44E
Link to the tutorial for creating cursor selection like in RPGs - https://youtu.be/AkhPfCF_2Vg?si=D_Lsb4QG8q-DkUOL
Things you can try is:
- Can you try putting all the buttons inside of the same
button_group
? - Can you try assigning neighbors for each of your buttons so they reference each other whenever you move around using your arrow keys?
I hope I understood your predicament correctly.