Heh. Just gave it a try. It works like I thought it would, but the gradient is too big and gradual. The end result is a really nice fade to black, but it isn't sharp enough to give that darkness closing in effect. The most appealing unconsciousness-like effect I managed was when I tweened in four different instances of the gradient sprite consecutively, and simultaneously tweened in the solid black image. So the whole screen gets darker all at once, but the edges get darker much faster, so you get both the "closing in" feeling and the "shit things are getting darker" feeling at the same time. The only problem is I end up with an artifact. A single white pixel in the center of the screen. I'm not sure what's up with that, but I think it has something to do with the gradient sprite, and the pure transparent spot in the middle. Probably could hide it by messing with z-order and putting the all black GUI on top anyway.
The only other problem I can think of is that if you have five simultaneous GUIs, four of which display instances of a fairly complex, screen sized sprite, it might cause some nasty slowdown on some machines.
Still, the effect was really neat.
The only other problem I can think of is that if you have five simultaneous GUIs, four of which display instances of a fairly complex, screen sized sprite, it might cause some nasty slowdown on some machines.
Still, the effect was really neat.