The idea is that when an enemy is killed, a flow of particles moves from the destroyed enemy to the player.
Code:
function move_power(){
	my.passable = on;
	my.size = 0.1;
	var c;
	while(vec_dist(me, player) > 10 && my. x > -200){
		ent_move(vector(-10, 0, 0), vector(-5, 0, 0));
		c = random(360);
		effect (minpart, 10, my.x, nullvector);
		wait(1);
		if(my.z < player.z){
			my.z += 5;
		}
		if(my.y > player.y){
			my.pan += 4;
			my.y -= 5;
		}
		else{
			my.pan -= 4;
			my.y += 5;
		}
	}
	ent_create("glow.tga", vector(player.x, player.y, player.z - 80), explosion_ring1);
	ent_remove(me);
}

I've done it with this code, but it isn't good, the movement is not good.
Can you help me to do something better? I've used particles, but i would like to use the "beam effect".
This is a demostration of my work as you can see, the movemen't isn't "smooth".

Last edited by Vyse220; 03/08/09 12:13.