Skip to content

Commit f921d28

Browse files
committed
Add tip
1 parent d6eb901 commit f921d28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Scenes/Decorations/TextBubble.gd

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ static var scenePath: String:
1818
#endregion
1919

2020

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.
2123
static func create(bubbleText: String, parentNode: Node = null, offset: Vector2 = Vector2(0, -16)) -> TextBubble:
2224
var newBubble: TextBubble = (load(scenePath) as PackedScene).instantiate()
2325
newBubble.position += offset # The default offset is above a 16-pixel sprite.

0 commit comments

Comments
 (0)