Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2014-11-04 11:59:19

Crona
Member
From: Wisconsin
Registered: 2014-09-23
Posts: 58
Website

Overlaping sprites?

Is it possible to have sprites overlap without getting all glitchy? Pretty sure its not because this happens normally.

http://i62.tinypic.com/iqybll.png

http://i58.tinypic.com/dceve1.png

Offline

 

#2 2014-11-04 12:51:24

RoboTwo
Member
From: Sweden
Registered: 2014-10-29
Posts: 19

Re: Overlaping sprites?

Sadly there's no way to control the sprite priority on the original GB.

Some systems base priority on the address they're placed on in memory or have a attribute for which sprites should overlap which.
The gameboy (non-color models) on the other hand handles this entirely based on the X position of the sprites relative to each other.
They did however solve this on the GBC models by making it based on the address in memory.

Pretty much the only way to give it some form of priority control would be to modify the tiles used by the sprites in realtime by masking out any sprites meant to overlap.
This would however be fairly complex.

PS: If you haven't already you might want to try out joining the #gbdev IRC channel if you have questions.
http://gbdev.gg8.se/irc-channel-gbdev/


Shake well before use

Offline

 

#3 2014-11-04 13:51:22

Crona
Member
From: Wisconsin
Registered: 2014-09-23
Posts: 58
Website

Re: Overlaping sprites?

Ok thanks. I couldn't find the #gbdev channel though, can you give me a direct link?

Offline

 

#4 2014-11-04 14:04:16

RoboTwo
Member
From: Sweden
Registered: 2014-10-29
Posts: 19

Re: Overlaping sprites?

http://www.efnet.org/
Just type your prefered nick into the Nickname field and #gbdev into the Channel field on the upper left.


Shake well before use

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson