Language…
20 users online: bradcomp, DanMario24YT, DashGamer, Domokun007, eltiolavara9, Green Jerry, hhuxy, lo fang 123, Michel2023, Nayfal, nonamelol1, playagmes169, prisvag, Serena, Shomi,  shovda, SMW Magic, TheXander, Torchkas, Tulip Time Scholarship Games - Guests: 283 - Bots: 353
Users: 64,795 (2,375 active)
Latest user: mathew

Layer 2 Loop

CompleteASM

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{^_^}

CompleteASM