#How to make a startup system run before others?

6 messages · Page 1 of 1 (latest)

clear tide
#

Hello, I'm new to bevy and I'm trying to put all sprite handles in a resource. The problem is that I need to access it in a startup system when creating the player entity. The way I tried to implement it was creating a startup system with access to Res<AssetServer> and created a struct with all the sprites and made it a resource with commands.insert_resource(...). (this didn't work because all the startup systems ran in parallel)

gloomy arch
wispy light
#

commands are run at the end of a stage, so setting labels won't help I think

#

scheduling the later setup in a later startup stage should work though

#
app.add_startup_system_to_stage(StartupStage::PostStartup, whatever_system);