Originally Posted By: Kartoffel
sorry, but does this make any sense?
Code:
vec_add(par_vec.x, player.x);
vec_set(par_vec.x, vector(0, 0, 0));
vec_rotate(par_vec.x, player.pan);



...and can you please post the particle-function, too?
I think the 'problem' should be in there.

EDIT: or try this (not tested):
Code:
function particle()
{
	VECTOR particle_velocity;
 	
 	var speed = 5; // particle speed - this needs to be adjusted!
 	
	cikarma = 1;	
	while(key_space)
	{
		if(cikarma==1)
		{
			vec_set(particle_velocity, vector(-speed, 0, 0);
			vec_rotate(particle_velocity, player.pan);
			
			effect(gas_function, 20, player.x, particle_velocity);
			media_play("fart.wav", NULL, 100);
		}
		wait(1);
	}	
}



sorry, but does this make any sense? - unfortunately no.

EDIT: or try this - it gives the same result

...and can you please post the particle-function, too? - here;

Code:
function event_gas(PARTICLE *p)
{
	p.red=5;
	p.blue=5;
	p.green=500;
}

function gas_function(PARTICLE *p)
{
	p.vel_y +=random(50);
	p.vel_x -=random(90);
	p.vel_z +=random(8)+2;
	p.red=206;
	p.blue=22;
	p.green=32;
	p.lifespan=5;
	p.size=random(20) + 5;
	p.bmap=greenparticle;
	p.event=event_gas;
	max_particles=30;
	set(p, MOVE | BRIGHT | TRANSLUCENT);
}


Last edited by GreenDeveloper; 11/10/12 13:27.

"Actually we are all Guybrush.." GreenDeveloper