Keen: Modding Forum Index Keen: Modding
All the modding info you'll ever need
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The Foot and Lindsey

 
Post new topic   Reply to topic    Keen: Modding Forum Index -> Galaxy Requests and Discussion
View previous topic :: View next topic  
Author Message
Plasma Captain



Joined: 11 Oct 2009
Posts: 17

PostPosted: Sun Oct 18, 2009 12:56 am    Post subject: The Foot and Lindsey Reply with quote

First of all, is there a patch for what Keen mugshot appears in the response to Lindsey's message? I know about this patch for changing what appears for Lindsey's mugshot, which I've done, and changing the caches just makes the mugshots look glitched. Basically I would like to change Keen's "thumbs up" shot (after he gives the reply) into the Lindsey picture (which is altered to be another expression for Keen).

Also, I'm wondering about what makes Keen interact with objects when he's dead. At first I thought it was only objects/sprites that are spawned by tiles - items which are placed as tiles can be collected when Keen is dead and bouncing, but items which are placed as straight sprites cannot. But then, enemies will still make Keen bounce some more when he's dead, and they're placed as straight sprites. Ideally I would like sprites such as Lindsey and The Foot in particular to interact with Keen when he's dead and flying. Not sure if this is patch-related or if there's a way to spawn such items through the use of tiles.

(If you're wondering why on the second half, I noticed in Ceilick's Keen 6 mod that you can collect the Battery easily by jumping into a gunshot, dieing, and falling into it through the floor. This doesn't seem to happen with Keen 4 stuff though.)
Back to top
View user's profile Send private message
levellass



Joined: 11 Oct 2006
Posts: 2045
Location: Ngaruawahia New Zealand

PostPosted: Mon Oct 19, 2009 7:58 am    Post subject: Reply with quote

How Keen (And all other sprites) interacts with objects is defined by the objects collision behavior:

Patch a collision behavior: http://levellord.rewound.net/Index/Keen%204/Sprite%20Patches/14.%29%20Sprite_Collision_1.TXT
Patch what behavior sprites use: http://levellord.rewound.net/Index/Keen%204/Sprite%20Patches/15.%29%20Sprite_Collision_2.TXT


The counter-intuitive thing about this is that Keen is killed not when an enemy touches him, but when HE touches the enemy! Since Keen's object type is always 2, even when he's dead, the dead Keen is spawned whenever he touches a killing enemy. As an illustration, this patch makes the Slugs kill Keen when they touch... each other:

Quote:
#Slug touching slug kills Keen:
%patch $FE77 $05 #Kill Keen [When hit by Slug]



Object-tile collision is given by another variable, the tile collision:

Patches for Keen: http://levellord.rewound.net/Index/Keen%204/Sprite%20Patches/25.%29%20Tile_Collision%5BKeen%5D.TXT
Patches for sprites: http://levellord.rewound.net/Index/Keen%204/Sprite%20Patches/24.%29%20Tile_Collision.TXT

In Keen 6 the dead Keen is poorly written, meaning that he can still interact with stuff, this may even have been done on purpose. (Note in Keen 4 you can only get the Wetsuit when standing on something!)


Replacing the thumbs up Keen is more difficult than other pictures which are pitifully easy. This is because the routine is used more than once, and as such is coded into lots of windows simply as 'Do that thumbs up thing'; changing it changes all windows, and while you can disable it, I have yet to figure a way of making it display another picture.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Keen: Modding Forum Index -> Galaxy Requests and Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group