I have the following setup in my project: a
FillViewport(400, 200) which is used to render the world and now I want to add some UI to the game, so I plugged in a
Stage without any custom viewport setup. All is fine for simple HUD like health, etc. - it behaves correctly (i.e. when the player moves, the elements move together with the player). But now I want to have create speech bubbles which will be displayed above the heads (or next to) of the characters I have in my game (please note that I don’t use a
Stage for my in-game characters and world).
How could I approach it? I tried using a different
Stage for the speech bubbles, but they just kept following the player no matter which viewport configuration I tried. By ‘following the player’ I mean that when the camera moves, the UI moves along. I can share more information if you need.