Vonwoah
New member
Version 4.1.5
Starting Module: BASE_ScrollingPlatformer.MOD
EDIT: Turns out the previous script was unnecessary. If you are running 4.1.5 and use the Scrolling Platform module, the fix can be applied to ModuleScripts/MainScripts/ScrollingPlatformer/ExtraControllReadCode.asm
Starting Module: BASE_ScrollingPlatformer.MOD
EDIT: Turns out the previous script was unnecessary. If you are running 4.1.5 and use the Scrolling Platform module, the fix can be applied to ModuleScripts/MainScripts/ScrollingPlatformer/ExtraControllReadCode.asm
Code:
ExtraInputControl:
;; Change player to standing/idle state once touching ground
LDX player1_object
LDA Object_physics_byte,x
AND #%00000001 ;; is on ground
BEQ +
GetCurrentActionType player1_object
CMP #$03 ;; jumping state
BNE +
ChangeObjectState #$00, #$04 ;; idle state
+
RTS