Temporary background color change

I remember seeing something a while ago where (in squiffy) you could change the background of the immediate section (leaving the css background alone). When you went to the next section, the color reset to the standard background.

This would be a neat trick for a game where you could tell your torch was lit by the immediate background around the text. So, anyone know this one?


In my game "StoreyMinus", I think I did it like this...

{if lightFlg:{@backcolor=background-color:Indigo;}}
{else:{@backcolor=background-color:Black;}}
<p style={backcolor}>

See if that works. Six months outside of the game and I don't remember anything. It might only fill the text area.


Log in to post a reply.

Support

Forums