Thanks Stef!
There are no alert messages for the allocation.
It only seems to happen when the sprite is created outside (almost whole or partly) of the screen. When the sprite is created inside the screen this does not happen.
Code: Select all
SPR_addSpriteEx(.,x,.,SPR_FLAG_AUTO_VISIBILITY | SPR_FLAG_AUTO_VRAM_ALLOC | SPR_FLAG_AUTO_SPRITE_ALLOC | SPR_FLAG_AUTO_TILE_UPLOAD)
x=320-88 => not broken
x=320-80 => not broken
x=320-72 => not broken
x=320-64 => broken
Same thing if I only do SPR_addSprite() without the flags as well.
Do I need to do SPR_setVisibility() for each frame? Looking at the code it looks like that beacuse the "sprite->visibility" is destroyed after each update?
I tried that as well but it doesn't help.
What do help is if I do a SPR_setAnim() with a different animation after a few frames the sprite has been added (don't know exactly when, though).
Any more suggestion?
