Started cutscene system

This commit is contained in:
YourWishes committed 2025-01-05 15:30:00 -06:00
1 parent e74878eb80
commit 0554f5719d
11 files changed
+135 -7

No files matched your search

@@ -0,0 +1,9 @@
class_name CutscenePrintEvent extends "res://scripts/Cutscene/CutsceneEvent.gd"
var text:String = ""
func _init(text:String) -> void:
self.text = text
func start() -> void:
print(self.text)
@@ -0,0 +1,12 @@
class_name CutsceneWaitEvent extends "res://scripts/Cutscene/CutsceneEvent.gd"
var wait:float = 0.0
func _init(wait:float) -> void:
self.wait = wait
func update(delta:float) -> void:
self.wait -= delta
func isDone() -> bool:
return self.wait <= 0.0