Light Switch Problem (note new request in post below)
Light Switch Problem (note new request in post below)
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.
- Freeyorp101
- Posts: 159
- Joined: Thu Nov 24, 2005 2:12 am
- Location: New Zealand
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.
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.
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:
So there you go, while I was at it, there's some other stuff:
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