Page 1 of 1

Wall item activation by objects (v0.17)

Posted: Thu Mar 14, 2002 12:32 am
by Gambit37
A new problem has occurred in this version. I have a coin slot operated by a gold coin, that when activated reveals an alcove underneath containing two gold coins. When I play the game, the coin slot never appears and the alcove can be seen straightway with the coins on it.

I suddenly realised that when the level starts RTC must be using the coins on the alcoves to activate the coin slot somehow, so that it performs its function immediately. If I comment out the coins, the slot is displayed correctly and functions correctly. I don't know if the same thing would happen with a keyhole that reveals an alcove containing the same key.

This worked fine in the previous version (v0.16)

Re: Wall item activation by objects (v0.17)

Posted: Fri Mar 15, 2002 10:16 am
by George Gilbert
This is working as designed and I have no intention of changing it!

Consider the case of the silver coin in the alcove in "The Vault". Here when the coin is initially in the alcove then it's right that it should activate the trigger in that alcove immediately. Similarly if you add coins to a tile that contains a coin slot then it really should activate the associated trigger.

As the order of the items in the file should reflect the order of items on the tile, then it also makes sense that the coins should come first and the slot last as the coins are "under" the slot.

Re: Wall item activation by objects (v0.17)

Posted: Fri Mar 15, 2002 1:32 pm
by Gambit37
OK, so I wnet back and rebuilt these slot/alcoves the same way you'd done on level 11 (10) of the DM dungeon. They work fine now.

I am still slightly confused though - have you changed the operation of these in this release? When I was testing this in my Kid dungeon in all previous releases, I never experienced this problem. Clearly, this was because the items in the alcoves were earlier in the file than both the coin slots and the alcoves.

However, when using this exact code in v0.17 it crashed the game when placing the objects back on the alcoves after having opened them using the coins. Re-ordering them seemed to get rid of this crash, but gave the new problem of the alcove being open. I seem to have fixed it all now, but I'm curious as to what has changed in this release.