warping to the wrong screen

Im having problems setting up warping, it warps me to the underworld even though the underworld checkbox is not marked.

I rememebr someone mentioning something in some thread about warping being broken in platformer module, is that it?
 

dale_coop

Moderator
Staff member
You use which version ? Which module ?
If you use the 4.0.11 with platform module, you need to add a "CLC" before the "ADC #$01":
Code:
	cpx player1_object
	BNE dontDoWarp_tile
	LDA warpMap
	CLC
	adc #$01
	STA temp
	GoToScreen warpToScreen, temp

dontDoWarp_tile:
 

chronosv2

New member
Yep. It's a dangerously easy thing to overlook. I was helping someone with a script problem for an Increase_X type script, forgot my CLC and when they went to test it they were gaining 2!
Turns out I wasn't aware that if you do an ADC (Add with Carry) command without CLC (Clear Carry) first it adds an extra 1 to account for Carry automatically!
 
Top Bottom