sonic-radiance/sonic-radiance.love/scenes/battlesystem/choregraphy/step/setAnimation.lua

30 lines
731 B
Lua
Raw Normal View History

local StepParent = require "scenes.battlesystem.choregraphy.step.parent"
2020-07-25 10:24:32 +02:00
local AnimationSetterStep = StepParent:extend()
function AnimationSetterStep:new(controller, args)
AnimationSetterStep.super.new(self, controller, args, true)
2020-07-25 10:24:32 +02:00
end
function AnimationSetterStep:start()
local actor = self:getActor(self.arguments.who)
2020-07-25 10:24:32 +02:00
actor:changeAnimation(self.arguments.animation)
actor:addTaggedAction(self.tag, self.choregraphy, "animation")
2020-07-25 10:24:32 +02:00
if (self.arguments.blockProcess == false) then
self:finish()
else
actor:blockChoregraphy(self.arguments.blockProcess, self, "animation")
2020-07-25 10:24:32 +02:00
end
end
function AnimationSetterStep:update(dt)
end
function AnimationSetterStep:getSignal(signal)
end
return AnimationSetterStep;