Screen Fading
1 Attachment(s)
Hello all,
My goal is to fade the sides of the screen from black, coming in more and more transparent. One way of doing it is I made fading images and they were set on a showImg and always staying on borders of screen, adjusting it's height and width according to screen size. Unfortunately, I think it somewhat lags. Any suggestions? I attached a picture with the idea I had in mind. The black starts from the borders, and fades in. |
Images are the way to go~
|
Quote:
Any ideas for that? |
Quote:
PHP Code:
|
Could always create a circular polygon around the player according to screenwidth/height
Actually, you may be interested in looking at this thread. It's not exactly what you're looking for, but can be done similarly. And what kind of blur are you looking for? The level and the player? |
Quote:
|
Quote:
|
Quote:
|
Quote:
I would recommend using a gradient image overlay on the screen layer, similar to what you've got pictured. By overlay, I mean that you need to stretch the image to the dimensions of the player's screen, and make it transparent. It shouldn't lag much at all as long as you aren't constantly re-drawing the image when you don't need to or anything like that. Then for the actual transition itself, create a function using seteffect to fade the screen in and out as the player is warping from one level to another. By combining a gradient image overlay with a fader, the darker shades of the gradient will fade out first, and the lighter shades will fade out last. However, you might also want to experiment by either inverting the image as well, or changing the image mode to negative as well to produce different results. If you wanted to get really fancy, you could try overlays in different shapes or forms. |
Quote:
|
Quote:
However, I would not strongly recommend keeping motion blur on all the time. I've gotten a few complaints that way. You have to use it judiciously. |
Quote:
Haven't tried the script that you guys offered me yet, but I will tonight and let you guys know how it goes. perhaps screenies if I'm having problems. |
1 Attachment(s)
You can just create a gani that creates a trail effect of the player and set it to an attr.
I think I actually have mine from Testbed. Basically you run a loop(however long you want the trail to be) and have an array that keeps track of the last 20 or so(again, the length of the trail) positions of the player. My version goes a bit further and also stores the animation frame to maintain accuracy and effect. |
Quote:
|
Quote:
|
All times are GMT +2. The time now is 08:11 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.