Ategon / Godot Small Wave BBCode
0 likes
0 forks
1 files
Last active 1 year ago
A text wave effect that moves one letter up at a time (for every 10 letters, that can be customized). Also has a shine effect which is what the part other than changing the offset is
| 1 | @tool |
| 2 | extends RichTextEffect |
| 3 | class_name SmallWaveEffect |
| 4 | |
| 5 | var bbcode = "smallwave" |
| 6 | |
| 7 | func _process_custom_fx(char_fx: CharFXTransform) -> bool: |
| 8 | var time = fmod(char_fx.elapsed_time * 8 - char_fx.relative_index + 100, 10) |
| 9 | var local_time = fmod(time, 1) |
| 10 |
Newer
Older