Hello all,
I got one question: How can I set that the screen starts to go completely white that the player can't see anymore, and return back to the normal screen 10 seconds later?
make the screen turn white
- DesperateGames
- Posts: 90
- Joined: Sun Oct 06, 2013 1:54 pm
Re: make the screen turn white
Hello bongobeat,
I did a similiar thing in my mod by using a particle system: The idea is to have an image that is 16x16 pixel large and just entirely white. Then you use the particle system to stretch this all over the players screen and fade it in slowly and then out again. The particle system could look like this:
The "lifetime" would be the time the screen is white, fadeOut and fadeIn would control the time it takes to, well, fade out and in again
After you have created this and the 16x16 image, you can call this in your dungeon as a screenEffect:
party:playScreenEffect("fade_out")
Hope this helps!
I did a similiar thing in my mod by using a particle system: The idea is to have an image that is 16x16 pixel large and just entirely white. Then you use the particle system to stretch this all over the players screen and fade it in slowly and then out again. The particle system could look like this:
Code: Select all
defineParticleSystem{
name = "fade_out",
emitters = {
{
emissionRate = 10,
emissionTime = 2,
maxParticles = 1,
objectSpace=true,
spawnBurst=true,
boxMin = {0, 1,0.2},
boxMax = {0, 1,0.2},
sprayAngle = {0,360},
velocity = {0,0},
objectSpace = true,
texture = "mod_assets/textures/particles/white.tga",
lifetime = {10,10},
color0 = {1, 1, 1},
opacity = 1,
fadeIn = 2,
fadeOut = 2,
size = {9, 9},
gravity = {0,0,0},
airResistance = 0.1,
rotationSpeed = 0.3,
blendMode = "Translucent",
},
}
}party:playScreenEffect("fade_out")
Hope this helps!
- Eleven Warrior
- Posts: 752
- Joined: Thu Apr 18, 2013 2:32 pm
- Location: Australia
Re: make the screen turn white
Komag also uses the Fade White fast in the Remake of LOG game.. Its on the last level of the game if i remeber. Iuse this and it's very effective.. His Dungeon Editor version also has the Particles System in one of the (lua) files.. There is also a Fade to Black fast as well, You can just change the colour to your needs..
Re: make the screen turn white
thanks for your replays guys!
I will try all of this!
I will try all of this!
Re: make the screen turn white
very good! this is amazing, thanks for the helps! 