From 16fa9f49eb6155c5e03e92b0e49e1a5a3655d6c9 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sat, 10 Apr 2021 17:43:10 +0200 Subject: [PATCH] improvement: make char switch instant --- sonic-radiance.love/scenes/overworld/actors/player/team.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-radiance.love/scenes/overworld/actors/player/team.lua b/sonic-radiance.love/scenes/overworld/actors/player/team.lua index 54d5779..fbb1361 100644 --- a/sonic-radiance.love/scenes/overworld/actors/player/team.lua +++ b/sonic-radiance.love/scenes/overworld/actors/player/team.lua @@ -18,6 +18,7 @@ end function Team:switchActiveCharacter() if (self.canChangeActive) then game.characters:setActiveCharacter() + self.active = game.characters:getActiveCharacterData() self.canChangeActive = false self.tweens:newTimer(0.3, "changeCharacter") self.tweens:newTween(0, 0.3, {activeVisible = self.activeVisible + 1}, "inQuad") @@ -27,7 +28,6 @@ end function Team:endCharacterSwitchAnimation() self.canChangeActive = true self.activeVisible = game.characters.active - self.active = game.characters:getActiveCharacterData() self:updateCurrentCharset() end