DanielT1985
Member
This is my first ever code modification for NESMaker. It removes knock back from getting hurt by something in the Platformula Module. And in platforming games, getting knocked back is NOT a good thing. cough cough Castlevania cough cough. So I tried to modify the GameEngineData coding to see if I can remove the Knock-Back, making platforming a bit more fun. I tried to modify the post-hit invincibility duration, but when I did, it causes the character to continue sliding, if it was walking when it got hit, and you can't control the character during that. Someone might find a way to fix that soon. For now, here's what I did to the following coding to make it remove Knock-Back.
So to remove the knock-back, go to GameEndineData\Routines\UserScripts\PlatformGame_Base\HurtWinLoseDeath\Platform_HandlePlayerHurt.asm and replace:
With
IDK if that did anything to it or not, but I did it anyway to play it safe. Next, comment out:
To
This will remove the knock-back as a whole.
Hope this helped, and hope you enjoyed my first ever code modding.
So to remove the knock-back, go to GameEndineData\Routines\UserScripts\PlatformGame_Base\HurtWinLoseDeath\Platform_HandlePlayerHurt.asm and replace:
Code:
;HURT_TIMER = #$08
;INVINCIBILITY_TIMER = #$08
With
Code:
HURT_TIMER = #$02
INVINCIBILITY_TIMER = #$0F
IDK if that did anything to it or not, but I did it anyway to play it safe. Next, comment out:
Code:
JSR DetermineRecoilDirection
To
Code:
;JSR DetermineRecoilDirection
This will remove the knock-back as a whole.
Hope this helped, and hope you enjoyed my first ever code modding.