[go: up one dir, main page]

Skip to content

Window doesn't clear if I use Query<&Window> in my draw function #14801

Answered by DasLixou
jcarvajal288 asked this question in Q&A
Discussion options

You must be logged in to vote

Entities are persistent. You spawn new sprites in the draw system, which is in the Update schedule, being called every frame. So you create more and more tiles every frame. Moving the draw function into the Startup schedule and having another system updating their position should be the way to go.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jcarvajal288
Comment options

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