Hi,
> > I've already saw articles talking about the double - size flag, but it
seems
> > not to be a really "smart" solution.
There are many ways to make a sprite non-visible, but only one way to "turn
it off". This is done by setting the double-size flag and clearing the
rot/scale flag. It has nothing to do with being smart, it is the way the
hardware works :).
> easiest and legal way is setting the y coordinate to 160
Easiest way to make it non-visible is setting the y to 160. In this case,
you remove it from scan-line obj calculations, and achieve a similar effect
to the double-size/rot-scale switch.
Is there an easy method to disable (hide) a sprite on the GBA ? Actually, when I do not use an OAM entry, I fill it with 0. In sprite RAM, the first 8 x 8...
Pierron, Christophe
CPierron@...
Aug 1, 2001 11:34 am
... easiest and legal way is setting the y coordinate to 160 -- Manfred Linzner (Project Manager) Shin'en Multimedia http://www.shinen.com Tel.: ++49 (0)89 785...
Manfred Linzner
linzner@...
Aug 1, 2001 11:39 am
Hello Manfred, ... ML> easiest and legal way is setting the y coordinate to 160 the double-size flag seems to be perfectly "legal" though (somewhere in N's...
groepaz
groepaz@...
Aug 1, 2001 4:42 pm
i can confirm that, the first few lines of the screen can have weird color marks on them if you are using alot of other sprites while still having most of them...
Dan Cotter
dancotter@...
Aug 2, 2001 3:10 am
Thanks, but I already knew that! It wasn't the solution I was referring to... ... From: groepaz [mailto:groepaz@...] Sent: 01 August 2001 20:15 To: Tom...
Tom Prosser
tom@...
Aug 2, 2001 1:12 pm
You both say that sprites can wrap around the screen ? I though it was only the behaviour of backgrounds. It is not logical that a sprite do the same, no ? ...
Pierron, Christophe
CPierron@...
Aug 2, 2001 5:34 pm
You only have 8 or 9 bits with which to specify the sprite position on the screen. They "wrap" in the sense that, say, an x coordinate of -1 will actually be...
Thomas
sorcererxiii@...
Aug 2, 2001 6:22 pm
Thank you I've read from an official source that : <<If the number for non-displayed (outside of the screen) OBJ in the OAM is lower than that for displayed...
Pierron, Christophe
CPierron@...
Aug 1, 2001 4:46 pm
What's wrong with it? It's about the "smartest" solution I've seen - it seems to completely switch off the sprite, whereas moving the Y value to 160 means you...
Tom Prosser
tom@...
Aug 1, 2001 4:48 pm
Hello Tom, Wednesday, August 01, 2001, 2:17:24 PM, you wrote: TP> What's wrong with it? It's about the "smartest" solution I've seen - it TP> seems to...
groepaz
groepaz@...
Aug 1, 2001 10:08 pm
Hi, ... seems ... There are many ways to make a sprite non-visible, but only one way to "turn it off". This is done by setting the double-size flag and...
Shawn Freeman
sfreeman@...
Aug 1, 2001 6:53 pm
That's what it means to me, so use the double-size flag instead. Although it's not mentioned in the manual, it's legal as, as groepaz says, it's defined in...
Tom Prosser
tom@...
Aug 1, 2001 6:55 pm
Thank you Tom, groepaz and others. You helped me to understand the good way of disabling sprites. I wrote "smart" method, but I should have wrote "a method...
Pierron, Christophe
CPierron@...
Aug 2, 2001 8:16 am
Hello Christophe, PC> The only thing I regret, is that I don't know how you managed to get the PC> official header files PC> (unless you are official...