PATCH: "You're dead!" bounce

Completed patches for Keen4.
Post Reply
User avatar
XkyRauh
Posts: 1114
Joined: Sun Aug 31, 2003 9:14 pm
Location: San Diego, California

PATCH: "You're dead!" bounce

Post by XkyRauh »

Careful how high you make this one--once Keen leaves the screen, he won't bounce anymore. :)

Code: Select all

#How much of a "bounce" does Keen get when he dies?
%patch $cca0 $CC $FF #default $D8 $FF
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

That can be changed, if I could only remember how it was done!
Zero X. Diamond
Posts: 44
Joined: Fri Jun 09, 2006 7:03 pm
Location: The Planet of the Tiny Hut People
Contact:

Post by Zero X. Diamond »

In theory, could this be used to make Keen not bounce at all? And if so, how about not moving, either? (Although it is my understanding that leaving the screen through the bottom or sides is how it triggers the "You didn't make it past" dialogue...)
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Yes; both the x and y values of Keen's death can be changed, but if Keen doesn't exit the screen; he'll be stuck. However, the game actually counts $64 ticks after this happens before moving on to this code, therefore, I can patch it so that when Keen dies the dialouge box pops up whenever you like; Keen doesn't need to exit the screen and the pause can be made as long as you want. (There will be however, no death sound.)
Zero X. Diamond
Posts: 44
Joined: Fri Jun 09, 2006 7:03 pm
Location: The Planet of the Tiny Hut People
Contact:

Post by Zero X. Diamond »

Ugh... it's a hard choice. There's no way to make it have a death sound without having him move? No way at all?

Either way, it'd probably be beneficial for everyone to have the code out there, eh?
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

I can make Keen die and the level restart without the death sound now. (Indeed Keen's death animation can animate or dissapear if you wish.)
Zero X. Diamond
Posts: 44
Joined: Fri Jun 09, 2006 7:03 pm
Location: The Planet of the Tiny Hut People
Contact:

Post by Zero X. Diamond »

Woah, how does that work? Do you mean you can have him not move, animate, and play the death sound?

Give me the code. HURRY, DO IT NOW!
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

Several option present themselves (And more!) this is the simplest.

Code: Select all

#Didn't make it past appears instantly when Keen is killed:
%patch $CC8E  $1A $00 #Sound played (In this case none)
%patch $CC7E  $BB $3A
%patch $CC4E  $BB $3A
%patch $CC6C  $BB $3A
(Behaviour $CE $15 can also be used)

Or this neat one:

Code: Select all

#Keen falls of the screen when 'hit'
%patch $2FA52 $8C $09
%patch $2FA70 $CE $15
%patch $CC8E  $1A $00 #Sound played (In this case none) 
%patch $CC7E  $E4 $0B
%patch $CC4E  $E4 $0B
%patch $CC6C  $E4 $0B
Post Reply