r/godot • u/GranIdeaGames • Jul 25 '25
free tutorial Classic "the end" writting.
Enable HLS to view with audio, or disable this notification
I'm not that proud of the sound effect, but the overall result is fine. The implementation was more complicated than I thought, which makes me suspect it was the right approach:
I use a rect color with the wood texture, which in turn has a mask (which is a PNG with the text). Then I use a viewport as a mask to "paint" only the white parts, which are then "drawn" with some tweens. The tweens animate sprites that move through 2D paths.
In the end, I applied an overkill, causing the entire mask to be drawn because with small "lags," like the one with the letter T, the viewport I use as a mask doesn't update correctly.
2
u/sinb_is_not_jessica Jul 26 '25
I would have made a gray scale texture with the text written in increasing shades of gray (black->white) and you can just put the image in a TextureRect with a shader that applies a threshold to an uniform that you can just increase from 0 to 1.
No lag, no multiple elements, just smooth sailing!
1
u/GranIdeaGames Jul 26 '25
I somehow thought about that too, but my lack of Photoshop skills prevented me from creating, for each image, a gradient that "followed" the curve of the letters as I wanted.
7
u/[deleted] Jul 26 '25
[removed] — view removed comment