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);
	}	
}


Last edited by Kartoffel; 11/10/12 13:12.

POTATO-MAN saves the day! - Random