diff --git a/sonic-radiance.love/datas/parsers/choregraphystep.lua b/sonic-radiance.love/datas/parsers/choregraphystep.lua index 8f4966d..ec25fe0 100644 --- a/sonic-radiance.love/datas/parsers/choregraphystep.lua +++ b/sonic-radiance.love/datas/parsers/choregraphystep.lua @@ -12,6 +12,7 @@ return { ["jumpTo"] = {"origin", "x", "y", "duration", "blockProcess"}, ["jumpBack"] = {"height", "speed", "blockProcess"}, ["waitActorFinished"] = {"waitFor"}, + ["setAnimSpeed"] = {"speed"}, ["waitFor"] = {"waitFor"}, ["skipTo"] = {"skipTo"}, ["addQTE"] = {"qteData", "origin", "blockProcess"}, diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/init.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/init.lua index 6412f89..ddbcabd 100644 --- a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/init.lua +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/init.lua @@ -12,6 +12,7 @@ actions["jump"] = require(baseURI .. "jump") actions["playSFX"] = require(baseURI .. "playSFX") actions["sendDamage"] = require(baseURI .. "sendDamage") actions["setAnimation"] = require(baseURI .. "setAnimation") +actions["setAnimSpeed"] = require(baseURI .. "setAnimSpeed") actions["wait"] = require(baseURI .. "wait") actions["waitFor"] = require(baseURI .. "waitFor") actions["skipTo"] = require(baseURI .. "skipTo") diff --git a/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/setAnimSpeed.lua b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/setAnimSpeed.lua new file mode 100644 index 0000000..6946071 --- /dev/null +++ b/sonic-radiance.love/scenes/battlesystem/controllers/fighters/systems/choregraphy/step/setAnimSpeed.lua @@ -0,0 +1,21 @@ +local StepParent = require "scenes.battlesystem.controllers.fighters.systems.choregraphy.step.parent" +local SetAnimSpeedStep = StepParent:extend() + +function SetAnimSpeedStep:new(controller, args) + SetAnimSpeedStep.super.new(self, controller, args) +end + +function SetAnimSpeedStep:start() + self.choregraphy.actor:setAnimSpeed(self.arguments.speed) + self:finish() +end + +function SetAnimSpeedStep:update(dt) + +end + +function SetAnimSpeedStep:getSignal(signal) + +end + +return SetAnimSpeedStep;