make the screen turn white

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

make the screen turn white

Post by bongobeat »

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?
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
User avatar
DesperateGames
Posts: 90
Joined: Sun Oct 06, 2013 1:54 pm

Re: make the screen turn white

Post by DesperateGames »

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:

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",
		},
	}
}
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!
User avatar
Eleven Warrior
Posts: 752
Joined: Thu Apr 18, 2013 2:32 pm
Location: Australia

Re: make the screen turn white

Post by Eleven Warrior »

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..
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: make the screen turn white

Post by bongobeat »

thanks for your replays guys!
I will try all of this!
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
bongobeat
Posts: 1076
Joined: Thu May 16, 2013 5:58 pm
Location: France

Re: make the screen turn white

Post by bongobeat »

very good! this is amazing, thanks for the helps! :D
My asset pack: viewtopic.php?f=22&t=9320

Log1 mod : Toorum Manor: viewtopic.php?f=14&t=5505
Post Reply