Light Switch Problem (note new request in post below)

Request patches for Keens 1-3.
Post Reply
Benvolio
Posts: 228
Joined: Sun Aug 29, 2004 4:44 pm
Location: Ireland
Contact:

Light Switch Problem (note new request in post below)

Post by Benvolio »

I have a problem with light switches in my mod (KEEN1). The switch, when 'flicked', doesn't change the lights, but rather replaces itself with tile 270 or 271 (they happen to be animated). My light switch's tile is 326. Anyone able to shed some "light" on the subject! :D It's not a critical issue, but it is a touch I would like my mod to have if at all possible!
Last edited by Benvolio on Fri Nov 17, 2006 4:13 pm, edited 1 time in total.
User avatar
Freeyorp101
Posts: 159
Joined: Thu Nov 24, 2005 2:12 am
Location: New Zealand

Post by Freeyorp101 »

It appears that the keen exe is reading your light switch tile as a bridge switch tile. without a sprite number, the switch just changes itself to the bridge tile.

I think that the light switch needs to be a particular tile # to operate as a light switch- this is 271 in keen1, keen2 and keen3. So your light switch tile should be moved to tile 271 to work properly.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

According to Adis; she made a topic about this ages ago and you're all lazy.

I looked it up; the game reads all tiles as bridge tiles except one and that is:

Code: Select all

#Change lightswitch tile 
%patch $36D6 $0F $01


So there you go, while I was at it, there's some other stuff:

Code: Select all

#Sound switch makes when flipped
%patch $35DB $13 $00

# Switch tiles change to the next in the tileset when flipped 
# Doesn't affect lightswitch; switches don't need to be the same as in Keen 2
%patch $36D5 $05 $01 $00 $26 $89 $07 $90 $90 $90 $90 $90 $90 $90 $90 $90
Benvolio
Posts: 228
Joined: Sun Aug 29, 2004 4:44 pm
Location: Ireland
Contact:

Post by Benvolio »

Thanks, that's very handy. might as well make a request, it would be well neat if the switch could rotate through all 4 palettes, not just the "on" and "off" palettes that it currently uses. Still, the insight's given here should solve my problem!
Post Reply