Sound while running?

Request patches for Keen Dreams.
Post Reply
User avatar
szemigi
Posts: 682
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Sound while running?

Post by szemigi » Mon Oct 21, 2019 12:00 pm

Hey, is it possible to play sound when Keen runs just like in Keen 4-6? If so, could you do it?

levellass
Posts: 2987
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Sound while running?

Post by levellass » Wed Oct 23, 2019 2:59 am

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

User avatar
szemigi
Posts: 682
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Sound while running?

Post by szemigi » Wed Oct 23, 2019 3:16 am

Thanks a lot.

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

levellass
Posts: 2987
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Sound while running?

Post by levellass » Thu Oct 24, 2019 3:49 am

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.

User avatar
szemigi
Posts: 682
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Sound while running?

Post by szemigi » Thu Oct 24, 2019 8:38 am

This will be cool and proper. Thanks for the patch!

Post Reply