Banner
Views: 771,810,071
Time:
19 users online:  BeeKaaaay, chickaDEE Magazine, Darolac, FelterBr, Green Jerry, Haida, Kevin Strom, MarioFan22, Maxodex, Mr. MS, nif.emi, placeholdertest, Poison, SPG64, Tashiro, WhiteYoshiEgg, yoshiatom, Yoshivert99, Yung Gotenks - Guests: 57 - Bots: 236Users: 40,543 (1,858 active)
Latest: Interstella
Tip: Bad things to do in the title demo: Enter a door or a pipe, activate a P-switch or a star, complete the level, hit a message block, or die. These will either glitch the music, or force the player into an endlessly looping title level until they reset the game.Not logged in.
Details for Sprite scroll fix
SMW Patches - Sprite scroll fix
File Name: Sprite scroll fix
Added:
Version History: View
Authors: GreenHammerBro
Tool: Asar
Requires Free Space: Yes
Bug Fix: Yes
Featured: No
Description: This patch fixes a bug where if you only clear out $7E1411 and/or $7E1412 and try to manually scroll the screen by incrementing or decrementing $7E1462 and/or $7E1464, sprites may fail to spawn or spawn on the side where the screen moves away from depending on how Mario is positioned to scroll the screen.
Tags: bugfix, glitch, lorom, needs remoderation, sa-1, scroll
Download: Download - 3.84 KiB
255 downloads
Screenshots
Image
GreenHammerBro
This is how SMW handles spawning sprites:


This checks if Mario's X on-screen position is to the right or left of the “center” of the “static camera region” (which is $142A (2 bytes)), to determine the direction to spawn sprites. This patch modifies:
Code
$00F728 to $00F72B - 4 bytes
$00F80C to $00F80F - 4 bytes
$00F713 to $00F717 - 5 bytes
$00F7F4 to $00F7F8 - 5 bytes

To detect a change of X position to determine direction. Thank goodness this works with the extended levels on LM v3+
Posted by: GreenHammerBro - | Link
GreenHammerBro
Sprites loading uses $55 to determine which side to spawn.
Posted by: GreenHammerBro - | Link
mjbg
i think it really fixed one problem i was having with a level
thank you!
Posted by: mjbg - | Link
GreenHammerBro
This is a type of bug that can only happen if you are in ASM hacking. That is why it is hard to find that bug.

I found this bug during the early development of the Mega Man scroll gates with sprites disappearing.
Posted by: GreenHammerBro - | Link
Von Fahrenheit
Moderator's note: A very... conditionally useful patch. It solves a bug I honestly didn't know existed, but if sprites despawning due to camera trickery is a problem in your hack, then this patch is for you!

Also big props to GreenHammerBro for taking the time to come up with fixes for all the little bugs in SMW.
Posted by: Von Fahrenheit - | Link

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

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 9

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented