Hi,
Are there ways to change the way sprites overlap each other? I know sprite priorities affect how they've drawn relative to the backgrounds, but what do I do if I want certain sprites to be under or over other ones? Are sprites with higher index (set with VDP_setSprite(index, etc) for example) simply drawn over the lower ones?
Thanks!
DJCC
Manipulating sprite overlap?
Moderators: BigEvilCorporation, Mask of Destiny
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
I think the order is set by the first parameter of VDP_setSprite function.
On screen, Sprite 0 is above 1 to 79, 1 is above 2 to 79, etc
On screen, Sprite 0 is above 1 to 79, 1 is above 2 to 79, etc
sprites with LOWER index will be drawned over the HIGHER onessprites with higher index (set with VDP_setSprite(index, etc) for example) simply drawn over the lower ones?
Last edited by oofwill on Tue Apr 24, 2012 1:26 pm, edited 1 time in total.