Banner
Views: 236,793,918
Time: 2013-05-25 11:03:20 PM
15 users online: Bille, Davichii, DJTeeJay, ggamer77, hypershadic, o Ladida, LostDoman, Magiluigi, MaxodeX, o Mippish, Randomiser, Shinnok, Skywalkeradam, o TRS, Wiimeiser - Guests: 25 - Bots: 7Users: 22,895 (1,290 active)
Latest: Skywalkeradam
Tip: If you edit level 0, make sure you also edit level 100. Both of them are used for the bonus game.
Sprite "priority"
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Sprite "priority"
Pages: « 1 »
Hi, I need help. I'm using that custom sprite, the YI dynamic door by edit1753 and there is an issue with the locked variant (and all others, but only that one is relevant). If I bring a key to the door (required to unlock it) the door goes over the key, while Mario is still over it. I don't know what it is. It might be the Z order, but then I'd have to wait for the next version of Lunar Magic, because:

Originally posted by Me
Hi, I was wondering: how do you use the Z-Order? I want vertical Paratroopas in a vertical line, like in some instances in the original SMW. I try putting the Z-Order to 0 for the top one, 1 for the second one, etc. so the bottom ones are over the top ones. But when I save, they get a random Z-Order. No matter what I do, they always randomly randomize in a random mess of priority.


Originally posted by Ayosuf (a.k.a. Fusoya)
It seems it's because I didn't actually tell LM to preserve sprite Z order when possible, so it only cares about following sorting rules imposed by the game. Now how did that get overlooked for 11 years...?

Anyway, it'll be fixed in the next version.


A question I asked some time ago.

So... yeah. If someone knows the real answer or something, I'd like to know it, because I'm lost.
Take a look at the graphics code. There should be something labelled priority. It depends on the high bit. 0,1,2 and 3 display the sprite as is with increasing priority. For instance the vanilla Lemmy and Wendy probably has the high bit as 0 since the sprite goes behind the pipe. 4, 5, 6 and 7 are x flipped with the same rules for priority. 8,9,A and B are y flipped and C, D, E and F are x and y flipped
Thanks! I can't test right now, but this definitely seems useful.
Actually, the priority part of the sprite tile properties only affect whether or not an object is affected by layer priority for the different layers or not. The only thing that decides whether or not a sprite goes in front of another is the order of the tiles of the two sprites in the OAM. To make the door appear behind other normal sprites you want to put it early in the OAM; my suggestion would be making it use the tiles normally reserved for cluster sprites.

This might be of help.
Originally posted by yoshicookiezeus
To make the door appear behind other normal sprites you want to put it early in the OAM; my suggestion would be making it use the tiles normally reserved for cluster sprites.

I'm sure it's the other way around: the later in the OAM, the farther back it is; it explains why cluster/point sprites can appear in front of others, and why Mario appears in front of many normal sprites.

Thus, you have to somehow make sure the door appears towards the end of OAM.
Pages: « 1 »
Forum Index - SMW Hacking - General SMW Hacking Help - ASM & Related Topics - Sprite "priority"

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2013 - SMW Central
Legal Information - Link To Us


Total queries: 27

Menu