Banner
Views: 931,817,009
Time:
22 users online: bandicoot, Beatsmedude,  bebn legg,  BeeKaay, CarloSB, Cryses96, detdu, Dippy, Fryinb, Fullcannon,  JamesD28, Julintendo, Koopster, KungFuFurby, MANGOMILK, Mapping_bl, Mecke1990, mike_bianchi, Mohamad20ZX, Rockyoshi5000,  Tahixham,  Teows - Guests: 96 - Bots: 167 Users: 52,018 (2,086 active)
Latest: Mecke1990
Tip: If you make a change to your ROM that you regret, just go to File > Restore > Restore ROM to Previous State in the menu. From there, you can select a restore point and revert your ROM to a previous state.
Not logged in.
Frostflow Freezer -> screen stop fix
Forum Index - Events - Super Mario World Central Production 2 Completion Project - SMWCP2 Archive - Frostflow Freezer -> screen stop fix
Pages: « 1 » Link
I made a code to fix a bug where if mario moves the screen too fast to the right where the door leading to the ice skating level, the screen stop slightly past the area where it should be, and that the screen gets stuck and can't go back.

EDIT: improved the code.

Code
!stop_right_scroll = $01		;>scren number to stop at


	REP #$20			;>begin 16 bit value
	LDA $1462			;\so if the screen skips a pixel, still
	CMP #!stop_right_scroll*$100	;|detect and locks the screen
	BCC freescreen			;|
	CMP #!stop_right_scroll*$100+10	;|
	BCS freescreen			;/
	LDA $7E				;\Allow screen to go back even if its
	CMP $142C			;|is locked in place. (can go left)
	BCC unlock_screen		;/
	LDA #!stop_right_scroll*$100	;\not only lock the screen, also if a pixel or
	STA $1462			;/2 are off, set it to be the correct position
	SEP #$20			;>end 16 bit value
	STZ $1411			;>and stop the screen
	LDA $13FE			;\if L/R scroll...
	BNE cancel_freeze		;/then cancel freeze
	BRA done_scroll
cancel_freeze:
	LDA $71
	BNE done_scroll
	STZ $9D				;>found a way to stop permanent freeze by l/r scroll
	STZ $1401			;and remove akward effects, like it keeps scrolling
	STZ $13FD			;right when mario head back after R scroll in border
	STZ $13FE			;>also like fade to map instantly as soon mario dies
	STZ $1400
	BRA done_scroll
freescreen:
	SEP #$20
	BRA done_scroll
unlock_screen:
	SEP #$20
	LDA #$01
	STA $1411
done_scroll:
	RTS


--------------------
Give thanks to RPG hacker for working on Asar.

Thank you sir ;)
Layout by LDA during C3.
Pages: « 1 » Link
Forum Index - Events - Super Mario World Central Production 2 Completion Project - SMWCP2 Archive - Frostflow Freezer -> screen stop fix

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

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


Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

  • Super Mario Bros. X Community
  • ROMhacking.net
  • Mario Fan Games Galaxy
  • sm64romhacks