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

Logo flashing before the splashscreen #8

Open
LeCalicot opened this issue Oct 6, 2023 · 3 comments
Open

Logo flashing before the splashscreen #8

LeCalicot opened this issue Oct 6, 2023 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@LeCalicot
Copy link

I have encountered an issue when integrating the splashscreen into my game but I haven't been able to fully extract a MWE yet.

I have a state structure as follows: Loading => Splashscreen => Menu
I'm using the asset loader before the splash screen (but don't use it to load the logo). I have just copy-pasted the code from the simpleexample directly into my game.

When the Splashscreen starts, the bey logo flashes very quickly, then disappear, then reappears again with fading this time with the Splashscreen working as intended.

I'm not totally sure what could be the issue. Maybe a problem with the state transition?

PS: skippable takes 2 p, there is a typo in the crate.

@LeCalicot
Copy link
Author

Ok. I just tried something: I inverted the Loading state and the Splashscreen state...and I don't have the bug anymore.

So I guess that the Splashscreen expects to be the first state of the app...?

I also tried to set the states in that order: Loading => Menu => Splashscreen => Playing
and I have a weird behavior as well, the Bevy logo loads from the beginning (shown over the menu) even though I haven't exited th menu state.

I think being able to insert splashscreen could be useful in some other places: announcing a new chapter / level within the game, therefore I think it makes sens that the splashscreen is not necessarily the very first state.

@SergioRibera
Copy link
Owner

Hey, seriously thank you very much for the details, it is something that seriously I had not planned, the idea that this screen appears in the middle of the game I really like, I will be working to try to solve this and the other error that you reported, as you say it seems to me that it is a state issue, also I would like to have a better management of the assets by the plugin, so it is another thing that I will be working the same, again thank you very much for your detailed report

@SergioRibera SergioRibera added the bug Something isn't working label Oct 7, 2023
@SergioRibera SergioRibera self-assigned this Oct 7, 2023
@LeCalicot
Copy link
Author

You are welcome.

For now, there is nothing blocking, but it might be a good idea to add a note in the readme to advise people to keep it as the very first state.

@SergioRibera SergioRibera added this to the v0.5 milestone Oct 7, 2023
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