Language…
7 users online: crocodileman94, Golden Yoshi, Mario's GameBase, Shiki_Makiro, signature_steve, X11Gbyte, yoshi9429 - Guests: 76 - Bots: 114
Users: 67,601 (2,013 active)
Latest user: Xtyler

Item Block Priority Mask

SMW Patches → Item Block Priority Mask

Submission Details

Name: Item Block Priority Mask
Author: Katrina
Added:
Tool: Asar
Requires Free Space: Yes
Bug Fix: No
Featured: No
Description: This patch uses a sprite priority mask to put items behind item blocks.

This means that they will no longer be obstructed by low-priority objects on Layer 1 or Layer 2, without having to change the item block Map16 to high priority.

Most useful for hacks which use unusual subscreen/mainscreen settings for color math, since having Layer 2 on subscreen normally puts items behind the BG.
Tags: lorom needs remoderation priority sprite super fx
Comments: 7 (jump to comments)
Download 900 bytes | 360 downloads

Screenshots

Comments (7)

El Cuh Fermin Link
Originally posted by lx5
this patch isn't even compatible with sa-1, sprite tables aren't properly remapped

get a sa-1 compatible version here


Big shoutout to LX5
lx5 Link
this patch isn't even compatible with sa-1, sprite tables aren't properly remapped

get a sa-1 compatible version here
HammerBrother Link
@MarioFanGamer

You mean “behind of blocks”.
 MarioFanGamer Link
It works, at least most of the time. It's a nice patch to make power ups appear in front behind of blocks without giving the block more priority.

The reason I wrote "almost" is because it might cause OAM glitches. Specifically, SMW reserves only one OAM tile for sprite slots A and B each which is usually reserved for power ups (this don't happen if the power ups are spawned in a later slot but for that, slots A and B have to be filled in the first place).
You can 'fix' this by installing NMSTL but have to have it activated all the time (at least whenver power up blocks appear) because NMSTL causes the sprites to reserve OAM slots variable instead of hardcoded.
Moltz Link
Pretty neat patch! It would be neat if you where able to apply the same code to Mario/Luigi when he's using a warp pipe and there's decoration around it.
 MarioFanGamer Link
It fixes a usually uncommon visual glitch, namely that items from item boxes goes behind the foreground (easy preventable, hence why you can say it's "uncommon") and in certain level modes even behind the background (usually due to using special effects like transparacy, also less common than the former).
I believe it's a good idea to disable layer 1 when you spawn an item and see if there is a used block when the item pops out of the block. If there is a used block, the patch works as it should.
Chihaya Link
I've been looking for this fix for ages. Unfortunately, the patch doesn't seem to take any effect on the rom (lorom, unclean). There's no readme, so all I'm doing is just patching it normally.