fix swapCharacter bug

This commit is contained in:
2022-01-09 18:47:46 -07:00
parent 35e4f95b4f
commit 034245a9e6

View File

@@ -161,9 +161,13 @@
// If the character is behind another character, swap them so the speaker is front
(case character.stagePosition
(LeftBehind
(swapCharacters character currentState.characterOnLeft ->:Void {}))
(if currentState.characterOnLeft
(swapCharacters character currentState.characterOnLeft ->:Void {}))
(moveCharacter character Left character.stageFacing ->:Void {}))
(RightBehind
(swapCharacters character currentState.characterOnRight ->:Void {}))
(if currentState.characterOnRight
(swapCharacters character currentState.characterOnRight ->:Void {}))
(moveCharacter character Right character.stageFacing ->:Void {}))
(otherwise))
(let [actor (the ActorFlxSprite character.actor)]
(if wryly