How do I make a label jiggle around like an animated sprite would. I want to make my main menu look nicer.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Mark_Jojoo

I want the main menu look a bit nicer but I have no idea how to make the tittle wiggle around and stuff. Thanks for the help.

Reddit - Dive into anything

rakkarage | 2020-06-22 16:07

:bust_in_silhouette: Reply From: dustin

use water shaders on your title node! (i assume you’re using a label)

try this one out:

shader_type canvas_item;

uniform float time_factor = 0.2;
uniform vec2 amplitude = vec2(20.0,5.0)

void vertec(){
    VERTEX.X += cos(TIME * time_factor + VERTEC.x, + VERTEX.y) * amplitude.x
    VERTEX.X += sin(TIME * time_factor + VERTEC.y, + VERTEX.x) * amplitude.y

incase you dont know how shaders work,
watch this video from GDQuest for the basics of how shaders work!