Custom Flashlight Help

Started by Privateer Puddin', Tue 23/08/2005 15:26:15

Previous topic - Next topic

Privateer Puddin'

Hello. Not a big fan of the current flashlight plugin and i wish to use a flashlight in one* room.

What it involves in my current thinking:

Original background, which is the 'lights off' background.
Two highlight versions of the background, one for when the cursor is to the right of the character, and one when the cursor is on the left, like this:

Need the two versions to prevent something like the right image (where the highlight is on the wrong side)

So the effect when using the cursor around the background is something like this:


A small area around the cursor would be shown, revealing the highlight background rather than how flashlights have been done before

Thanks for any help :)

* As it is just for one room, if it needs something really overly complex then we probably shouldn't bother :D

SSH

So, just load the different backgrounds as extra background frames and switch between them manually. Make sure you stop the background animation in the room load script. I used this technique in Awakening of the Sphinx.
12

Privateer Puddin'

Hmm. That would solve the issue of switching between the two highlight versions, but still need help on having the highlights only shown when the cursor is nearby.

GarageGothic

#3
I have a current feature request that would allow something like this, but as it's just for one screen, let's make it easy. First draw the unlit background. Then draw the highlighted screen and cut it into a number of sprites (not square shapes but irregular ones). Place them as objects over their corresponding piece of the background. Make them 100 % transparent. Then as the cursor passes over them, gradually decrease the transparency in a relation to how far the object is from the cursor. The object directly beneath it should have no transparency at all.

I did something similar for another effect, and it looked great.

SMF spam blocked by CleanTalk