text animation
parent
958d60df1f
commit
aa36e28bc9
@ -0,0 +1,16 @@
|
||||
extends Label
|
||||
|
||||
var frequency = 5
|
||||
var amplitude = 550
|
||||
var time = 0
|
||||
# Called when the node enters the scene tree for the first time.
|
||||
func _ready():
|
||||
pass # Replace with function body.
|
||||
|
||||
|
||||
# Called every frame. 'delta' is the elapsed time since the previous frame.
|
||||
func _process(delta):
|
||||
#pass
|
||||
time += delta
|
||||
var movement = cos(time*frequency)*amplitude
|
||||
position.y+=movement * delta
|
Binary file not shown.
@ -0,0 +1,19 @@
|
||||
[remap]
|
||||
|
||||
importer="mp3"
|
||||
type="AudioStreamMP3"
|
||||
uid="uid://dawltfnifxgiq"
|
||||
path="res://.godot/imported/alien-bulls.mp3-8618ad5650cb5e91981b0ee087ac4c40.mp3str"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://alien-bulls.mp3"
|
||||
dest_files=["res://.godot/imported/alien-bulls.mp3-8618ad5650cb5e91981b0ee087ac4c40.mp3str"]
|
||||
|
||||
[params]
|
||||
|
||||
loop=true
|
||||
loop_offset=13.0
|
||||
bpm=0
|
||||
beat_count=0
|
||||
bar_beats=4
|
Loading…
Reference in New Issue