diff --git a/sonic-radiance.love/scenes/battlesystem/actors/parent.lua b/sonic-radiance.love/scenes/battlesystem/actors/parent.lua index 2ecfa32..c6256cb 100644 --- a/sonic-radiance.love/scenes/battlesystem/actors/parent.lua +++ b/sonic-radiance.love/scenes/battlesystem/actors/parent.lua @@ -84,6 +84,14 @@ function Parent:changeAnimation(animation, restart) end end +function Parent:setAnimSpeed(speed) + if (self.sprite.clone == nil) then + self.assets.sprites[self.sprite.name]:setSpeedFactor(speed) + else + self.sprite.clone:setSpeedFactor(speed) + end +end + function Parent:animationEnded(animation) -- Empty placeholder function end