Skip to content
Discussion options

You must be logged in to vote

The following should work:

app.add_startup_systems((
    setup_grid,
    apply_system_buffers,
    drop_mines,
).chain()));

This way the three system are chained one after the other and are guaranteed to run in the specified order.

In your code above apply_system_buffers doesn't run during startup, but during the main schedule, so drop_mines runs before it during startup, and your grid won't be spawned yet.

Replies: 1 comment 4 replies

Comment options

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

@wilk10
Comment options

@AllanJRY
Comment options

@wilk10
Comment options

Answer selected by AllanJRY
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