First builds and stuff done yipewaho
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
extends Node2D
|
||||
|
||||
@export var float_height := 2.0
|
||||
@export var float_speed := 1.25
|
||||
|
||||
var start_y := 0.0
|
||||
var time := 0.0
|
||||
var phase := 0.0
|
||||
|
||||
func _ready():
|
||||
start_y = position.y
|
||||
phase = randf() * TAU # Random value between 0–2π
|
||||
|
||||
func _process(delta):
|
||||
time += delta * float_speed
|
||||
position.y = start_y + sin(time + phase) * float_height
|
||||
@@ -0,0 +1 @@
|
||||
uid://dxcke7geb20dm
|
||||
Reference in New Issue
Block a user