This commit is contained in:
Jan Racek
2026-03-29 18:40:52 +02:00
parent 2cd9af28f1
commit fcb25a5388
22 changed files with 1307 additions and 175 deletions

View File

@@ -4,17 +4,16 @@
function onCreate(self)
Debug.Log("Spinner created, initial rotY: " .. self.rotationY)
Cutscene.Play("spin_loop", {loop = true})
end
function onInteract(self)
if Cutscene.IsPlaying() then
Cutscene.Stop()
if Animation.IsPlaying("anim_spinner") then
Animation.Stop("anim_spinner")
setStatus("Spinner stopped!")
Debug.Log("Spinner stopped at rotY=" .. Entity.GetRotationY(self)
.. " frame=" .. Timer.GetFrameCount())
else
Cutscene.Play("spin_loop", {loop = true})
Animation.Play("anim_spinner", {loop = true})
setStatus("Spinner started!")
end
end