Banner
Views: 784,891,821
Time:
10 users online: BabaYegha,  Ersanio,  KKevinM,  MarioFanGamer, MaxwelHacks, Mikosama,  RussianMan, Sweetdude, toad64, xyz600sp - Guests: 26 - Bots: 113 Users: 41,042 (1,547 active)
Latest: TouhouShark
Tip: If you place Dragon Coins in a level, make sure there are at least 5.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 »
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 »
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 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 7

Menu

Follow Us On

  • YouTube
  • Twitch
  • Twitter

Affiliates

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