fix swapCharacter bug
This commit is contained in:
@@ -161,9 +161,13 @@
|
|||||||
// If the character is behind another character, swap them so the speaker is front
|
// If the character is behind another character, swap them so the speaker is front
|
||||||
(case character.stagePosition
|
(case character.stagePosition
|
||||||
(LeftBehind
|
(LeftBehind
|
||||||
(swapCharacters character currentState.characterOnLeft ->:Void {}))
|
(if currentState.characterOnLeft
|
||||||
|
(swapCharacters character currentState.characterOnLeft ->:Void {}))
|
||||||
|
(moveCharacter character Left character.stageFacing ->:Void {}))
|
||||||
(RightBehind
|
(RightBehind
|
||||||
(swapCharacters character currentState.characterOnRight ->:Void {}))
|
(if currentState.characterOnRight
|
||||||
|
(swapCharacters character currentState.characterOnRight ->:Void {}))
|
||||||
|
(moveCharacter character Right character.stageFacing ->:Void {}))
|
||||||
(otherwise))
|
(otherwise))
|
||||||
(let [actor (the ActorFlxSprite character.actor)]
|
(let [actor (the ActorFlxSprite character.actor)]
|
||||||
(if wryly
|
(if wryly
|
||||||
|
Reference in New Issue
Block a user