Skip to content
Discussion options

You must be logged in to vote

In that case, you can maybe use the same function contents in a global script, but instead use the preStateSwitch callback to catch the event and only use the switch statement if FlxG.state's type matches funkin.menus.MainMenuState to allow what you are trying to do in the code from the video.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@THEkatinamicrowave
Comment options

@THEkatinamicrowave
Comment options

@r6915ee
Comment options

Answer selected by THEkatinamicrowave
@THEkatinamicrowave
Comment options

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