How to use the sprite visibility flag
Posted: Tue Feb 24, 2015 1:06 am
In sprite_eng.c, there are two methods to set a sprite visibility:
Should I use these methods to set the visibility on a sprite? Are these methods the correct way to update visibility instead of directly updating sprite visibility:
Code: Select all
SPR_setAlwaysVisible(Sprite *sprite, u16 value)
SPR_setNeverVisible(Sprite *sprite, u16 value)
Code: Select all
sprite->visibility = TRUE;
sprite->visibility = FALSE;