gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Coding > Sprite Arrays?

#5534 - redneon - Wed Apr 30, 2003 10:58 pm

Does anyone know if its possible to use sprites in an array? I'm making a breakout clone and really don't want to make each brick it's own sprite. So I've created a brick sprite and am wanting to know if I can replicate it on screen.

Any ideas?

Cheers,

Darrell

#5535 - niltsair - Wed Apr 30, 2003 11:02 pm

Why aren't you using hte MapMode then (Display mode 0,1,2)?

Else there's 128 sprites objects, and Sprite's tiles. Just make every sprites you need point to the tiles position for your brick.

#5555 - antysix - Thu May 01, 2003 3:53 pm

you can set attribute 2 to the same sprite data and the rest of the sprite
(attribute 0 and 1) with other information (like the position) and you have
2 sprites using the same data.
_________________
Currently playing: NGC: Metroid Prime
GBA: Golden Sun: The Lost Age

Currently developping: Project ~ [ Phail ]