Where to Disable B to run. (Platformer) (Solved)

I don't really want my character to run/sprint when holding down the B button, but since this seems to be hardcoded into engine, I can't find out where it is.

I assume AccAndSpeed_Platform_Simple, but there's so much going on there, and the commented code doesn't make it clear if the functionality is actually being set there.

Anyone care to shed some light?
 

Kasumi

New member
In GameEngineData/Routines/UserScripts/PlatformGame_Base/MainScripts/Physics_Platform_Simple.asm on line 228 is the code.

Code:
CPX player1_object
	BNE dontCheckForSprint
	LDA gamepad
	AND #%00000010 ;; is b pressed?
	BEQ dontCheckForSprint
	;;; should sprint
	LDA temp3
	CLC
	ADC #$01
	STA temp3
dontCheckForSprint:
Take all of that out and you should be good to go.
 
Top Bottom