Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes with Splash Screen and bevy_asset_loader #19

Open
NoahShomette opened this issue May 9, 2024 · 0 comments
Open

Crashes with Splash Screen and bevy_asset_loader #19

NoahShomette opened this issue May 9, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@NoahShomette
Copy link

I am combining both this crate and bevy_asset_loader. However I am getting an occasional error where clicking too fast to skip will crash the game. I've traced this to the fact that the splash_skip function runs in any state and therefore when my app is in the loading state clicking will skip to the game state before its loaded and will cause systems to crash because the game hasnt been properly loaded.

Solution

If splash_skip is given a .run_if(in_state(self.state.clone())) then it should fix these issues and correctly only let the splash be skipped when its actually being run

@SergioRibera SergioRibera added the bug Something isn't working label May 12, 2024
@SergioRibera SergioRibera self-assigned this May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants