Hello,

I have been having this problem with particles that happens after video_switch (both video_mode and video_screen).

What happens is particles work fine until a video_switch is performed, after that, the p.alpha seems to be unchangeable in the p.event function much of the time for what seems to be random particles.

After the video_switch, you can seem to change the frequency of the particles effected also by moving closer or farther from the particles, or changing the the angle the camera is viewing the particles sometimes too.

It seems to be happening with a all of effects that use p.alpha to terminate the particle I have in the game, not only the one shown in movie linked below.

Particle Problems Movie Zip

Also on a side note, I have also noticed that any decal shadows in the view also disappear during video_switch until the entity that owns the decal shadow moves, at which time the decal shadow will reappear. If it never moves, the decal shadow will never reappear. This is noticeable in the movie also with the decal shadows under the crystals around the geyser, they disappear after video_switch also.

Snippet of code of effect from movie.
Code:
function effectGesyserSteam(PARTICLE* p)
{
	var color;
	
	p.bmap = tgaGeyserSteam;
	p.vel_z = 1*GAME_SCALE;
	p.alpha = 15 + random(10); 
	p.size = random(30) + 30; 
	p.lifespan = 100;
	color = random(50) + 50;
	p.red = color;
	p.green = 255;
	p.blue = color;
	p.flags |= (MOVE);
	
	p.event = effectGesyserSteamFade;
}

function effectGesyserSteamFade(PARTICLE* p)
{
	p.alpha -= (.5 + random(.25)) * time_step;
		
	if (p.alpha < 5) 
	{
		p.lifespan = 0;
	}	
}


I am not sure how this could be specific to the game, but I supposed it is possible. Just wanted to make sure this isn't a known issue because I was unable to find any mention of it.

Thanks,
Loco


Professional A8.30
Spoils of War - East Coast Games