Skip to content
Discussion options

You must be logged in to vote

Since the sound plays on buttons that stay in the menu, I’d check when the Freeplay button calls FlxG.switchState. In the stock menu, selectItem() plays CoolUtil.playMenuSFX(CONFIRM) first, then opens Freeplay inside the menu animation’s completion callback about a second later. Try the same order in your custom button: play the sound, then switch states when the animation finishes. Stock Freeplay button

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@manicsanic
Comment options

Answer selected by manicsanic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants