Material Box

Material Box

WEB Design & Material Images

Godot - How to create wavy text in RichTextLabel

Godot

This is an example of how to create wavy text in a RichTextLabel node using GDScript.
This method is not available for Label nodes.


Enables the `bbcode_enabled` property.
Wraps the text to wave in the `[wave]` tag.
The `[wave]` tag can specify parameters as follows: `amp` for wave amplitude, `freq` for wave frequency, and `connected`.
Setting `freq` to `0` will stop the animation and the wave will be static.

var label = RichTextLabel.new()
add_child(label)
label.global_position = Vector2(0, 0)
label.size = Vector2(200,200)

# Create wavy text in RichTextLabel
label.bbcode_enabled = true
label.text = "[wave amp=100.0 freq=5.0 connected=1]Change Color Text[/wave]"

Godot

TitleGodot - How to create wavy text in RichTextLabel

CategoryGodot

Created

Update

AuthorYousuke.U