New frame for the Robo Red stun patch

Request patches for Keens 4-6.
Post Reply
User avatar
loop4ever
Posts: 19
Joined: Sun Jan 06, 2019 10:37 pm

New frame for the Robo Red stun patch

Post by loop4ever »

So, on the wiki there's a patch that makes Robo Red stunnable, only problem is that when I use the patch his stunned frames are the same as his right and left frames. I would like to give Robo Red a NEW stunned frame

Code: Select all

#New collision: stun
%patch $1264D $55 $8B $EC $56 $57 $8B $76 $06 $8B $7E $08 $83 $3D $02 $75 $09
              $9A $0B8013E9RL     $5F $5E $5D $CB $83 $3D $03 $75 $18 $C7 $44
              $16 $0000W  $C7 $44 $06 $0001W  $B8 $00F2W  $50 $57 $56 $9A $090B16CDRL
                          $83 $C4 $06 $5F $5E $5D $CB

#New action: stunned
%patch $30432 $0184W $0183W $0002W $0000W $0000W $0000W $0000W $0000W
              $090B1710RL   $00000000L    $090B195ARL   $0000W
55Aavenue
Posts: 19
Joined: Wed Apr 04, 2018 7:19 pm

Re: New frame for the Robo Red stun patch

Post by 55Aavenue »

I'm new at patching myself to forgive me if I'm wrong on any of this is wrong but this may help point you in the right direction...

I think the animation frames his stunned action will use are in the second part of the patch, they are $0184W and $0183W. Under the animation section of the robot red wiki page we can see that this (note the #Robo Red moving section)

Code: Select all

#Cache
%patch $31A3C $0183W #Robo Red cache start
%patch $31A90 $0188W #Cache end

#Robo Red moving
%patch $32A74 $0184W $0183W
%patch $32A7E $0006W        #Animation speed

#Robo Red shoot
%patch $32A92 $0184W $0183W
%patch $32A9C $0028W        #Pause before shooting
%patch $32AB0 $0184W $0183W
%patch $32ABA $0004W        #Pause between shots
%patch $32ACE $0184W $0183W
%patch $32AD8 $0006W        #Shot time

#Robo Red's shot
%patch $32AEC $0185W $0185W
%patch $32AF6 $0008W        #Animation speed
%patch $32B0A $0186W $0186W
%patch $32B14 $0008W        #Animation speed

#Robo Red's shot smash
%patch $32B28 $0187W $0187W
%patch $32B32 $000AW        #Animation speed
%patch $32B46 $0188W $0188W
%patch $32B50 $000AW        #Animation speed
I believe changing these values will alter what frames are used for his stun actions. If you want a totally new animation you will have to sacrifice one of his other frames.

I think you could also sacrifice a frame from another sprite, but then you also will need to alter what frames are cached or the game will crash
User avatar
loop4ever
Posts: 19
Joined: Sun Jan 06, 2019 10:37 pm

Re: New frame for the Robo Red stun patch

Post by loop4ever »

Thanks I saw those numbers and thought the same thing. I'll see if I can solve this myself.
User avatar
loop4ever
Posts: 19
Joined: Sun Jan 06, 2019 10:37 pm

Re: New frame for the Robo Red stun patch

Post by loop4ever »

I solved it! 55 Aavenue thanks for getting me back on the right track.
Post Reply