1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-10-06 09:17:07 +02:00
ScreenPlay/Content/wallpaper_godot_fjord/Action.gd
2023-10-22 17:29:06 +02:00

28 lines
750 B
GDScript

extends Node
# Reference to the PathFollow node
@onready var path_follow = $Path3D/PathFollow3D
@onready var label = $Label3D
var debug_path
var screenplaywallpaper
var appID = ""
# Speed of the movement along the path
var speed = 0.8
var path = "/root/Wallpaper/ScreenPlayGodotWallpaper"
func _process(delta):
# Update the offset to move the object along the path
path_follow.progress += speed * delta
# Loop back to the start if we've reached the end of the path
if path_follow.progress >= 18.81:
path_follow.progress = 0.0
return
if has_node(path):
if get_node(path):
appID = screenplaywallpaper.get_appID()
else:
appID = "404"
label.text = "Godot Wallpaper\n" + Time.get_time_string_from_system() + "\nAppID: " + appID