My game needs buttons like the one below covering the screen, with the game world showing underneath. They should always stay in the same place, regardless of the position or zoom of the game world.
What’s the best way of achieving this?
My game needs buttons like the one below covering the screen, with the game world showing underneath. They should always stay in the same place, regardless of the position or zoom of the game world.
What’s the best way of achieving this?
I figured out a pretty hacky solution to the above; I cobbled together the shapes with a bunch of rectangles, like this:
Is this the only/best way of doing it?!
I think something like that is easiest yes. You could also refine the approach by defining your own (convex) shapes.
For instance, there’s the Defold Polygon Editor that @ross.grams created.
Yeah, I was thinking about that. Can those be attached to Gui nodes, or would they then have to live in the game world?
We only have physics support in the game world.