Skip to content

"[fx1]Theatre[/fx1]" without any animation #30

Answered by nndda
heartcraftcat asked this question in Help
Discussion options

You must be logged in to vote

Hi! thank you so much for trying out theatre ^^

These text effects used are actually Godot Engine's built-in features!

As for the text effects [fx1], the effects is defined as a RichTextEffect class in a script. Here's the script used for that effect specifically.

@tool
extends RichTextEffect
class_name TextEffect1
var bbcode = "fx1"
const COL := Color("#8ae5ff")
var col_fx := COL.darkened(0.2)
var f : float
func _process_custom_fx(char_fx : CharFXTransform) -> bool:
f = sin(char_fx.relative_index / 3.15 - char_fx.elapsed_time * 9.25)
char_fx.color = COL.l…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@heartcraftcat
Comment options

@nndda
Comment options

Answer selected by heartcraftcat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants