keen 5 security doors act like gem doors in keen 4 in keen 4

Anything related to Keen Modding.
Post Reply
User avatar
Bubzrulz
Posts: 170
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

keen 5 security doors act like gem doors in keen 4 in keen 4

Post by Bubzrulz » Mon Apr 17, 2017 3:59 am

trying to use keen 5 security doors in keen 4 mod to act like gemed doors 1st try = this

is it possible to do thinking that would need a patching like the bridge rows think it would need column patch

i can flip it open easy enough

Image

Nisaba
Posts: 154
Joined: Fri Jan 01, 2016 11:15 pm
Location: patch.pat

Re: keen 5 security doors act like gem doors in keen 4 in keen 4

Post by Nisaba » Mon Apr 17, 2017 6:02 am

the easiest way to trigger the door animation would be to use it like a bridge.
flip the switch --> door opens
the last door tiles need to have door properties so Keen can exit through it.
try this variant first, before jumping into some advanced stuff.

User avatar
Bubzrulz
Posts: 170
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: keen 5 security doors act like gem doors in keen 4 in keen 4

Post by Bubzrulz » Mon Apr 17, 2017 6:05 am

Nisaba wrote:
Mon Apr 17, 2017 6:02 am
the easiest way to trigger the door animation would be to use it like a bridge.
flip the switch --> door opens
the last door tiles need to have door properties so Keen can exit through it.
try this variant first, before jumping into some advanced stuff.
yes i have done that already.. but that wanted to try and use a key if possible

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

Re: keen 5 security doors act like gem doors in keen 4 in keen 4

Post by levellass » Wed Apr 19, 2017 11:41 am

This patch makes all the keygem doors (ALL of them) into 2x3 block doors like in Keen 5. I am not sure if it will wreck some other patches in your patchfile, so that is possible.

Quoting the keenwiki: 'This patch alters the door code so that rather than animating special tiles, it copies a block of the level (Both foreground and background) from another location onto the door, much like how Miragia works.

This means that doors can be of any height or width, not just a single column. It also means any tiles may be used in a door, including animating ones and switches. The disadvantage is that all doors in a level will use the same tiles at the same location and so will do the same thing. This means that while doors can do more things, all doors in a level must do the same thing. '


So be aware it COPIES bits of the level instead of animating them. (See how Miragia works on the map? Like that.) It will however let you use doors that go to a different location when opened then they did when 'closed' (Switchable doors.) If you want regular doors AND these new doors... that is a tricky patch that will take at least a week to set up and will probably need a copy of your patchfile.

Code: Select all

#Disable sprite test cheat
%patch $6D39 $CB

#Door tile replacement code, 2x3 block starting at 0,0 in the level
#Door 1, 2x3 at 0,0 in level
%patch $6D3A  $55 $8B $EC $56 $8B $76 $06 $B8 $0004W  $50 $B8 $0002W  $50 $FF     #Block size is here
              $74 $0C $FF $74 $0A $B8 $0000W  $50 $B8 $0000W  $50 $9A $16540D78RL #Block location here
                      $83 $C4 $0C $5E $5D $CB
#Door 2, 2x3 at 0,4 in level
%patch $6D62  $55 $8B $EC $56 $8B $76 $06 $B8 $0004W  $50 $B8 $0002W  $50 $FF     #Block size is here
              $74 $0C $FF $74 $0A $B8 $0000W  $50 $B8 $0004W  $50 $9A $16540D78RL #Block location here
                      $83 $C4 $0C $5E $5D $CB
#Door 3, 2x3 at 0,8 in level
%patch $6D8A  $55 $8B $EC $56 $8B $76 $06 $B8 $0004W  $50 $B8 $0002W  $50 $FF     #Block size is here
              $74 $0C $FF $74 $0A $B8 $0000W  $50 $B8 $0008W  $50 $9A $16540D78RL #Block location here
                      $83 $C4 $0C $5E $5D $CB
#Door 4, 2x3 at 0,12 in level
%patch $6DB2  $55 $8B $EC $56 $8B $76 $06 $B8 $0004W  $50 $B8 $0002W  $50 $FF     #Block size is here
              $74 $0C $FF $74 $0A $B8 $0000W  $50 $B8 $000CW  $50 $9A $16540D78RL #Block location here
                      $83 $C4 $0C $5E $5D $CB

#Door sprite actions:
%patch $3065C $0000W $0000W $0000W $0000W $0000W $000AW $0000W $0000W
              $06BD016ARL   $00000000L    $00000000L    $180AW
%patch $3067A $0000W $0000W $0000W $0000W $0000W $000AW $0000W $0000W
              $06BD0192RL   $00000000L    $00000000L    $1828W
%patch $30698 $0000W $0000W $0000W $0000W $0000W $000AW $0000W $0000W
              $06BD01BARL   $00000000L    $00000000L    $02D7W
%patch $2F147 $0000W $0000W $0000W $0000W $0000W $000AW $0000W $0000W
              $06BD01E2RL   $00000000L    $00000000L    $0000W

User avatar
Bubzrulz
Posts: 170
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: keen 5 security doors act like gem doors in keen 4 in keen 4

Post by Bubzrulz » Thu Apr 20, 2017 9:55 am

done!!
one on left you switch the switch and it open and one on right use the key one note every door that uses the gems will also have same link

Image

User avatar
Fleexy
Site Admin
Posts: 385
Joined: Fri Dec 12, 2008 1:33 am
Location: Blogham Tower
Contact:

Re: keen 5 security doors act like gem doors in keen 4 in keen 4

Post by Fleexy » Thu Apr 20, 2017 1:12 pm

Careful, if the player uses the door in the stage where it has the door tiles (D) but no links, they'll be taken to 0/0 and thereby exit the level. You probably want to make the door not be a door until the final stage, or give the penultimate stage links.

User avatar
Bubzrulz
Posts: 170
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: keen 5 security doors act like gem doors in keen 4 in keen 4

Post by Bubzrulz » Thu Apr 20, 2017 1:18 pm

Fleexy wrote:
Thu Apr 20, 2017 1:12 pm
Careful, if the player uses the door in the stage where it has the door tiles (D) but no links, they'll be taken to 0/0 and thereby exit the level. You probably want to make the door not be a door until the final stage, or give the penultimate stage links.
ahh yes i know knew that an over look on my part fixed

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests