Region Tints

Started by Mr_Threepwood, Mon 28/08/2006 23:46:55

Previous topic - Next topic

Mr_Threepwood

Is it possible to use a region tint so that it will affect the background?

It seems to me that when you do a region tint it only affects the characters tint when he's in the region, and dosent tint the background at all.

Right now I just put an unclickable object where the region is and tint that to get the right effect, but if there's a way to do it with regions it would be better.

The reason I can't just draw the tint in as part of the background is because it's supposed to be glowing, so the tint amount is constantly changing in repeatedly_execute_always.


Also I can't get screen tints to work how I want them, if I want a room that constantly fades into black and then lighter then the tintScreen function is what would be good to use.  It doesnt work though since it only takes numbers up to 100 an dyou can't achieve a solid black tint.

So to work around that one I had to make a massive black object that covers the whole screen and has its transparency constantly changing to achieve the right effect.

It still looks a bit weird since it looks like there is some tearing in the object or something, a line is drawn sort of on one part of the object as its transparency changes.
I am a mighty pirate

R4L

I guess you should just use TintScreen ::)

Khris

Rap: I guess you should just read the first post before posting an arrogant one-liner.

Mr_Threepwood:
Couldn't you use background frames to achieve the desired effect?
If that's not possible, using a non-clickable object seems to be a good alternative, why do you think this is bad?

Mr_Threepwood

#3
The reason I'd prefer to use a region if it was possible is that it lets me do two things at once:

1.Ã,  Have the area constantly changing tints so it looks as if it was glowing.

2.Ã,  Be able to trigger an event when the player walked onto the glowing region.

Right now I have to use a non clickable object and then draw a region on top of it to do this.

The other problem with using the massive black object is that if you want to position other objects it becomes difficult, I guess the best way around this would be to do the black object last.

Screen tints look like a promising thing to achieve the black effect but they don't work as well as character tints yet (which take 0-255 and have saturation and luminence).

As for using background frames, it really doesnt work for what I have set up in a few spots.Ã,  If you want a true glowing effect you need more then 5 frames really, which makes the tints nice since you can achieve more than enough frames to make it look like it's glowing.  Plus I'm trying to be conservative on the amount of stuff going on, so I think changing background frames all the time might be worse than tinting.  I've been running my game on a 3.2ghz processor with tons of ram so it's run fine.  I don't know how it's going to run on something slower, I guess it all depends how hard it is on the computer to constantly change the tints.

In the AGS manual it said that the tintscreen causes slowdown, but I don't know if that is still relevant or not since that could have been written when the average computers were much worse than they are now.
I am a mighty pirate

SMF spam blocked by CleanTalk