Banner
Views: 1,003,256,677
Time:
22 users online: 7 up, aaa, AjaTheVampire, Children's Digest 1950-2009, Daizo Dee Von, Fruitloops, Fullcannon, IanBoy, Impetus, JupiHornet, KlonoA13Phill, Knucklesfan, lolyoshi,  Major Flare, MomentBruh,  patcdr, PyRo1314, rafaelfutbal, Ringo, SLBros.,  Telinc1, WhiteYoshiEgg - Guests: 91 - Bots: 238 Users: 54,835 (2,031 active)
Tip:
Not logged in.
Layer 2 Loop
Forum Index - SMW Hacking - Requests - Archived Requests - Layer 2 Loop
Tags:
Pages: « 1 » Link
Name: Layer 2 Loop

Type: UberASM

Description: A code that makes layer 2 loop like in "Do pilots wear capes?" from Jump 1/2. Would be cool if the code were compatible with already existing layer 2 codes (like this from Blind Devil) to make some cool combinations (for example: loop and smash, like in "Switch hitters" from Send Your Regrets to the Czar)
Claiming this. No guarantees on when it'll be done, surely this month.
Thank you for claiming this, take your time #smw{^_^}
Well, sorry this took forever, but the code used in JUMP 1/2 is public, so I just pulled it from their resource pack. Don't credit me for this, nor will I be submitting it, but this fulfills the request as described.
Code
main:
	LDA $9D		;\ If sprites locked,
	ORA $13D4|!addr
	BNE .return	;/ branch
	
	LDA $60
	BEQ +
	REP #$20
	INC $96
	SEP #$20
	LDA #$01
	STA $0F00|!addr
	BRA ++
	+
	LDA $0F00|!addr
	BEQ ++
	STZ $0F00|!addr
	LDA #$10
	STA $7D
	REP #$20
	INC $96
	SEP #$20
	++
	
	STZ $1412|!addr	; Disable vertical scroll
	DEC $1468|!addr	; Scroll layer 2 downwards
	
	LDA $1468|!addr	;\ If not time for layer 2 to return,
	BNE .return	;/ branch
	LDA #$C0	;\ Reset layer 2 position
	STA $1468|!addr	;/
	.return
	RTL

Edit: forgot the .return label.
Originally posted by MarkAlarm
Well, sorry this took forever, but the code used in JUMP 1/2 is public, so I just pulled it from their resource pack. Don't credit me for this, nor will I be submitting it, but this fulfills the request as described.


Thanks, I'm gonna mark this as completed. However, I was wondering if there's some way to make this code a little bit customizable (maybe like editing the speed) because I can't do it with this #smw{o_O}

PS: no problem that it took this much, thanks for helping #smw{^_^}
Pages: « 1 » Link
Forum Index - SMW Hacking - Requests - Archived Requests - Layer 2 Loop

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

Copyright © 2005 - 2022 - 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