Language…
11 users online: Angel Miranda, Eduard, Everest, fsvgm777, GRAVITORBOX,  icrawfish, MarioSMWGooder, Mr. MS,  NopeContest, SirMystic, Zavok - Guests: 102 - Bots: 140
Users: 57,115 (2,273 active)
Latest user: Virtual Ketchup

Vertical Spawn/Despawn Fix

SMW Patches → Vertical Spawn/Despawn Fix

Submission Details

Screenshots

View all

Comments (6)

 MarioFanGamer Link
Moderated with
  • Lunar Magic v3.11
  • SA-1 Pack v1.32
  • Asar v1.71
  • BSNES v115
  • BSNES Plus v05

If you build a level with vertical scrolling with these sprites, it's pretty annoying how their despawn range is much smaller than SubOffScreen, likely to prevent them from going above or below the level, but also their spawn range when placed in the level. It is even noticable in the vanilla game such as Donut Secret 2 with its Spike Tops where you can freely scroll the screen vertically and Vanilla Dome 4 has got the surround Bullet Bill generator i.e. Bullet Bills which don't move horizontally.
 Kevin Link
Remoderation notes: made compatible with LM 3.00+ new horizontal level modes and optimized the code a bit.
Tested with: LM 3.11 / 2.53, SA-1 1.32, asar 1.71, Snes9x 1.60.
UltiMario From older version: Vertical spawn/despawn fix Link
Warning: This patch isn't fully compatible with LM 3.0+ as it breaks some sprite spawning in some horizontal level modes. Don't install this if you're using these new features.
lx5 From older version: Vertical spawn/despawn fix Link
Working fine on non SA-1 and SA-1. I never knew these bugs existed in first place. Nice.
HammerBrother Author From older version: Vertical spawn/despawn fix Link
I've realized that smw's suboffscreen routine does not delete sprites in horizontal levels when above the level, since most sprites never ascend infinitely into the sky. This is probably nintendo added this code that had a potential bug:

Originally posted by bullet bill
Code
CODE_019017:        B5 D8         LDA RAM_SpriteYLo,X       
CODE_019019:        38            SEC                       
CODE_01901A:        E5 1C         SBC RAM_ScreenBndryYLo    
CODE_01901C:        C9 F0         CMP.B #$F0                
CODE_01901E:        90 03         BCC CODE_019023           
CODE_019020:        9E C8 14      STZ.W $14C8,X             
 RussianMan From older version: Vertical spawn/despawn fix Link
Cool, bullet fix bill!