We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6eb901 commit f921d28Copy full SHA for f921d28
Scenes/Decorations/TextBubble.gd
@@ -18,6 +18,8 @@ static var scenePath: String:
18
#endregion
19
20
21
+## Creates & returns a new [TextBubble].
22
+## TIP: The [param offset] is applied to the default position of 0,0 so the offset may also be used as a absolute position.
23
static func create(bubbleText: String, parentNode: Node = null, offset: Vector2 = Vector2(0, -16)) -> TextBubble:
24
var newBubble: TextBubble = (load(scenePath) as PackedScene).instantiate()
25
newBubble.position += offset # The default offset is above a 16-pixel sprite.
0 commit comments