Language…
17 users online: h.carrell, Hammerer, Heitor Porfirio,  idol, Maw, MegaSonic1999, Metal-Yoshi94, playagmes169, ppp9q,  Saphros,  Sayuri, Silver_Revolver, SMW Magic, Sweetdude, TheKazooBloccGosh, TheXander,  yoshi3706 - Guests: 498 - Bots: 362
Users: 64,795 (2,374 active)
Latest user: mathew

Sprite moving with Layer 2, Brutal Mario Bosses and change of screens

An user called IceMan posted a code before having your account disabled:

Code
Layer2:
	LDA #$xx        ;X-Position within screen position
	SEC
	SBC $E4,x
	STA $1466
	LDA #$00        ;Usually #$00 since we want it in the same screen
	SBC $14E0,x
	STA $1467
	LDA #$xx        ;Y-Position within screen position
	SEC
	SBC $D8,x
	STA $1468
	LDA #$01        ;#$00 or #$01 depending if on sub screen or not
	SBC $14D4,x
	STA $1469
	RTS

It's a code used for making the sprite move along with Layer 2. Is that code correct?
I wanted to make the Layer 2 sprite change the from 00 screen to 01 or 02 screen of Layer 2.

THIS:




There's an infamous example of the chomp boss from Brutal Mario



The boss is Layer 2 and can "change the direction" changing screen 00 to 01.
Some brutal mario bosses uses Layer 2 and have coding issues when inserted with PIXI.
How can i change the screen 00 to 01 or 02?