It is currently Sun Oct 22, 2017 12:29 pm

All times are UTC - 7 hours





Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: sprite overlap question
PostPosted: Mon Aug 01, 2005 11:02 pm 
Offline
User avatar

Joined: Tue Dec 21, 2004 8:35 pm
Posts: 600
Location: Argentina
after trying and trying i cant get accurate emu when two sprites overlap,
the thing is funny in my emu: its like one sprite fights to the other one, i mean its timed, one time you see in front of the other and viceversa

any idea what could be the problem?

_________________
ANes


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 01, 2005 11:31 pm 
Offline
User avatar

Joined: Wed Nov 10, 2004 6:47 pm
Posts: 1845
The lowest number sprite is the one that's displayed. IE: sprite 0 is drawn over sprite 1 -- which is drawn over sprite 2, over sprite 3, etc.

When sprites overlap in game, there will usually be a flicker effect -- this is due to the game's OAM cycling routine. Basically the game is moving sprites around so that sprites have high priority one frame and low priority another frame (making all sprites visible through flickering rather than some just being completely invisible).

So yeah... the flicker effect is normal. All your emu should be doing is giving lower numbered sprites priority when there's a conflict.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 01, 2005 11:47 pm 
Offline
User avatar

Joined: Fri Nov 12, 2004 2:49 pm
Posts: 7234
Location: Chexbres, VD, Switzerland
Some licenced games such as Double Dragon and 3d-WorldRunner doesn't have sprite cycling at all (because the priority is important due to how the graphics are displayed)

_________________
Life is complex: it has both real and imaginary components.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 7 hours


Who is online

Users browsing this forum: Memblers and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group