Page 1 of 1

Sound while running?

Posted: Mon Oct 21, 2019 12:00 pm
by szemigi
Hey, is it possible to play sound when Keen runs just like in Keen 4-6? If so, could you do it?

Re: Sound while running?

Posted: Wed Oct 23, 2019 2:59 am
by levellass
This patch plays two sounds in a 1-2-1-2 pattern as Keen walks. The timing between them is $10 and $20(-$10). The sounds here are $02 and $03, though you'll probably want to change them.

Code: Select all

#Keen makes a sound when he walks
%patch $7A17 $EB $25 $83 $7C $38 $00 $75 $06 $83 $7C $3C $00 $74 $1B $C7 $44
             $1A $0000W  $C7 $44 $1E $0ED8W  $A1 $0ED8W  $83 $7C $0E $01 $75
             $03 $A1 $0EDAW  $89 $44 $20 $EB $27 $FF $06 $0368W  $B8 $0003W
             $81 $3E $0368W  $0010W  $74 $10 $81 $3E $0368W  $0020W  $7C $10
             $33 $C0 $A3 $0368W  $B8 $0002W  $50 $9A $10BB1282RL     $44 $44
             $E9 $FF45W

Re: Sound while running?

Posted: Wed Oct 23, 2019 3:16 am
by szemigi
Thanks a lot.

I also want sound when Map Keen walks. Is it also possible?

Re: Sound while running?

Posted: Thu Oct 24, 2019 3:49 am
by levellass
Yes, BUT-

This patch must be placed AFTER the Keen Galaxy-style dying patch I made, since it messes with it a bit. If it is put before, it will crash the game.

Code: Select all

#New MapKeen_Walk tcol, merges with Keen_Walk =$05E805A5RL
%patch $6425 $55 $8B $EC $56 $8B $76 $06 $E9 $1611W  $90

#Change MapKeen_Walk tcol to make noise
%patch $248D0 $05E805A5RL

It also has the same sound and tempo as the in-level walk. If you want two DIFFERENT walking sounds then that is much trickier.

Re: Sound while running?

Posted: Thu Oct 24, 2019 8:38 am
by szemigi
This will be cool and proper. Thanks for the patch!