Language…
9 users online: Ashura4126, Darolac, Dongulusrift, Evernn, Golden Yoshi, k99loko, MM102, revolug, yoshiatom - Guests: 104 - Bots: 108
Users: 69,762 (2,525 active)
Latest user: GeryU

Proximity Wraparound fix

SMW Patches → Proximity Wraparound fix

This file is obsolete. The latest version is Proximity Wraparound Fix 2.0.1. For other versions, check the version history.

Submission Details

Name: Proximity Wraparound fix
Authors: HammerBrother, JackTheSpades, RussianMan
Added:
Version History: View
Tool: Asar
Requires Free Space: Yes
Bug Fix: Yes
Featured: No
Description: This patch fixes various sprites using the horizontal and vertical proximity check that wraps around the border of the screen. It includes:

- Thwomps
- Falling spike
- Yoshi egg
- Chargin Chuck
- Splittin Chuck
- Bouncin Chuck
- Whistlin Chuck
- Rip van fish
- Upside down Piranha plant and its classic.
- Jumping Piranha plant
- Exploding block
- Swooper Bat
NEW - Ledge & Ground Dwelling Monty Moles
Tags: bugfix lorom proximity sa-1
Comments: 11 (jump to comments)
Download 3.42 KiB | 291 downloads

Screenshots

Comments (11)

Vellidragon Link
MAJOR BUG: This patch causes Bouncin' Chucks to make shell-less koopas near them constantly turn to the right (to the point they will wiggle through solid objects/sprites!) while the Chuck is idle. It's easily and consistently reproducible and a big problem because these are standard sprites.

Tested on an SA-1 rom with no other patches applied, so it's definitely this patch doing it.
Maarfy Link
Fixed a small oversight that caused jumping Piranha Plants to always jump regardless of player proximity. Also added FastROM mirrors and removed a handful of redundant org commands for improved readability/Hijack Map alignment.

It simultaneously does and does not amaze me that this is a problem that even needs fixing. Either way, this patch does the trick, making proximity-based enemies behave a great deal more consistently (especially Rip Van Fish, what with the extra dimension of movement provided by water levels). If there’s ever another update to this patch in the future, it would be neat if all of the constant proximity values would be converted into defines - this patch would then be especially easy to use as an enemy proximity detection range changer.
 RussianMan Author Link
Added changelog so you know what's changed in new versions (though you can already see what from description).
Mogu94 From older version: Proximity Wraparound fix Link
Ground-Dwelling Monty Moles have this issue and aren't fixed by this patch. Ran into this while designing a level just now.

Decided to check the other Monty Mole enemy as well, it also has this same issue.
 Major Flare From older version: Proximity Wraparound fix Link
Worked fine. Tested in horizontal levels (normal and big levels), vertical levels, lorom and sa-1. Accepted.
 RussianMan Author From older version: Proximity Wraparound fix Link
Optimized and added fixes for Swooper Bat and Exploding Blocks.
 RussianMan Author From older version: Proximity Wraparound fix Link
Too bad it doesn't fixes exploding blocks and other sprites I forgot about :(
DiscoTheBat From older version: Proximity Wraparound fix Link
This patch is good for people that don't want certain sprites from acting weird should the player be at the boundaries of the screen, making the sprite checks go crazy.
HammerBrother Author From older version: Proximity Wraparound fix Link
Do note that custom sprites are not affected by this. Therefore, use the subroutine in this asm file instead.
HammerBrother Author From older version: Proximity Wraparound fix Link
You mean the original proximity check on the asm library? Although, I didn't intentionally steal his code, I wrote this patch from scratch, must be a coincidence then.
DiscoTheBat From older version: Proximity Wraparound fix Link
Well, the JSLs for SubHorizPos16Bit and SubVertPos16Bit have been converted to JSR in order to save a bit of time and space. Also, this code was made by Sonikku.