+1 vote

Hello,

I'm currently making a grid based tactics game similar to Fire Emblem.
When I click on a character, I want a context menu to pop up that lists several Buttons like "Move", "Attack" etc.

I made a VBox container and added some buttons, but I don't know how to make the context menu pop up relatively close to the clicked character.

Thanks in advance.

asked Aug 11, 2018 in Engine by Eisen (13 points)

Instantaite the menu scene and alter its position attribute. Use the position attribute of the character to determine where to position the menu.

1 Answer

0 votes

currently in a similar situation so can't tell you how exactly to do this but this object seems to be usefull for it: https://godotsharp.net/api/3.0.3/Godot.PopupMenu/

answered Sep 7, 2019 by zen3001 (164 points)
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.