Fixed "Double-bop" on some songs like High Erect

This commit is contained in:
entar 2025-09-01 10:03:32 +07:00
parent e478c47208
commit e01b4f213b

View File

@ -521,7 +521,7 @@ local function state(songName, songDifficulty, show)
if beat % 2 == 0 then
-- gf:PlayAnimation("BF NOTE LEFT", 30, false)
for name, character in next, characters do
if not character.singing then
if not character.singing or character.sprite.ended then
if name == "gf" or character.animInfo.danceLeft then
character:PlayAnimation("danceLeft")
else
@ -535,7 +535,7 @@ local function state(songName, songDifficulty, show)
end
else
for name, character in next, characters do
if not character.singing then
if not character.singing or character.sprite.ended then
if name == "gf" or character.animInfo.danceLeft then
character:PlayAnimation("danceRight")
end
@ -563,13 +563,13 @@ local function state(songName, songDifficulty, show)
if finsihed then zoomTween = nil end
end
for name, character in next, characters do
if name ~= "gf" and character.animInfo.idle and character.sprite.animation ~= "idle" and character.sprite.ended then
character:PlayAnimation("idle")
elseif (name == "gf" or character.animInfo.danceLeft) and character.singing and character.sprite.animation ~= "danceLeft" and character.sprite.ended then
character:PlayAnimation("danceLeft")
end
end
-- for name, character in next, characters do
-- if name ~= "gf" and character.animInfo.idle and character.sprite.animation ~= "idle" and character.sprite.ended then
-- character:PlayAnimation("idle")
-- elseif (name == "gf" or character.animInfo.danceLeft) and character.singing and character.sprite.animation ~= "danceLeft" and character.sprite.ended then
-- character:PlayAnimation("danceLeft")
-- end
-- end
for index, module in next, modules do
if module.onUpdate then