0 votes

Hi guys, I am making a 2d pixel art game. And I was thinking about implementing some speech bubbles that should appear in front of either interactable objects (doors, chests...) or characters.
It should look like this It should look like this , but I would require something simpler, instead of the character going out of the bubble, I'd use an icon centered in the bubble, but not bigger than it (same for text).
I have tried this instantiating my bubble scene, however, this always shows at the center of the screen and with a huge size (root node is a NinePatch).
How could I achieve something like this?

asked Apr 16 in Engine by SebSharper (59 points)

1 Answer

0 votes

Press V while hovering over the node in the editor to set the pivot point to the little triangle thing, and then set the speech bubble's position to the player's position.

answered Apr 17 by RazorSh4rk (256 points)

So the triangle thing and the speech bubble are different nodes? Do I make the speech bubble a NinePatch and the triangle a TextureRect?

You can just use an image if you dont wanna resize it too much, but yeah, something along those lines.

Is there any way to make it resize according to the children size?

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.