MetroidVania 4.5.9 My Janky solution to monsters recoilling to the left when hurt.

Matsuura77

New member
Hi All.
Forgive me if this is a solution everyone else came up with ages ago, this is all new to me and this is the first thing i solved by myself rather than reading other peoples solutions.
I've spent the last few hours trying to figure out an easy way to stop monsters recoiling to the left when taking damage. I didn't want to turn off recoil completely as I still want it for my game character. Anyhow, my solution was to create an action type for my monster "hurt right" I duplicated the "Move Left" AI script into the relevant slot and changed the direction.

Now, when a monster has this selected in the "actions" for action step 7 (hurt) in monster animation info he recoils to the right, away from my player. sadly, changing the timer/ animation length has no effect. the monster will always recoil to the right the same distance.

I know this is super simple (literally changing a couple of numbers in a pre written script) and lots of you will have better solutions to this issue. Hopefully someone (like myself, just starting to get to grips with things) will find this useful.

The main thing is.. my monster doesn't decide the best course of action when hurt is a Banzai charge straight at me.

TXA
STA tempA
LDA #%00000010
TAY
LDA DirectionTableOrdered,y
STA tempB
LDA FacingTableOrdered,y
STA tempC
StartMoving tempA, tempB, #$00
ChangeFacingDirection tempA, tempC
 

dale_coop

Moderator
Staff member
Hmmm, not sure if it has been fixed. But check that topic:
 
Top Bottom