Language…
4 users online:  Atari2.0, BabaYegha, sinseiga, Tsquare07 - Guests: 243 - Bots: 341
Users: 64,795 (2,375 active)
Latest user: mathew

Help fixing this code

I am trying to disable the turning around animation for yoshi when you are riding in a lakitu cloud. The reason for this is that Yoshi's head clips off when turning while riding in it because the cloud tiles take up all the graphic slots. This is a problem that existed in the vanilla game too and no settings in lunar magic fixes this. I came up with this code. It does keep it from using the turning graphic but it doesn't disable the turning timer so yoshi's head still disappears. I can't find the address of the Yoshi turning timer. Can anyone help?


Code
if read1($00FFD5) == $23
	sa1rom	
	!addr	 = $6000
    !bank    = $000000
	!15AC	 = $338C
else
	lorom
	!addr	 = $0000
	!bank    = $800000
	!15AC	 = $15AC
endif


org $01EAF0|!bank
autoclean JML YoshiinCloudFix

freecode

YoshiinCloudFix:

LDA.W !15AC,X
BEQ CODE_01EAF7
LDA  $18C2|!addr    ; Player in Lakitu Cloud Flag
BNE CODE_01EAF7 
LDY.B #$03          ; Yoshi's Turn Frame
CODE_01EAF7:
JML $01EAF7|!bank

Trust the Fungus.
You've already got the turning timer, it's $15AC. You may instead want to look at $1602, which is Yoshi's animation frames ‐ it might be that his turning animation frame is the issue instead.