Skip to content

Sprite won't be visible until the next sprite spawns #8288

Answered by guest-twenty-one
nskins asked this question in Q&A
Discussion options

You must be logged in to vote

This looks like an asset unloading bug:

  1. at 0:14 the last single banana is caught and its entity is despawned
  2. the asset server marks the banana.png image for removal as there's no sprite using it
  3. ONE or TWO frames later, another single banana sprite is spawned using the same banana.png image
  4. the asset server unloads the banana.png image (even though it shouldn't), and your banana sprite disappears from the screen (the entity is still there and moving down - you just don't see it)
  5. it appears after another newly spawned sprite loads the banana.png image again

What's interesting is that, if the new sprite is spawned in the same frame or 3 or more frames after the last banana sprite is despa…

Replies: 1 comment 1 reply

Comment options

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

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