#91069 - jee - Tue Jul 04, 2006 11:40 am
I'm trying to make some sort of health bar that needs to be precise to the pixel.
I'm using sprites to do this. I was wondering if theres a way to draw only part of a sprite?
#91111 - tepples - Tue Jul 04, 2006 5:36 pm
Many games for 8- and 16-bit platforms had nine pre-rendered sprite tiles for 0, 1, 2, 3, 4, 5, 6, 7, and 8 pixels full. I know at least Tetяis (by Tengen) had all 8 for its tetromino frequency display, and the Mega Man series used states 0, 2, 4, 6, and 8. Games would either load all nine tiles into sprite VRAM and then use OAM to select one, or they would load empty, full, and middle cels and overwrite the middle tile with partially full tile data as needed.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#91126 - MrD - Tue Jul 04, 2006 6:58 pm
If the bar is a solid coloured rectangle, then consider using an affine sprite for it.
_________________
Not active on this forum. For Lemmings DS help see its website.