When you use the MOVE flag then my code wont work. You must then add the players speed to the particle position.
function orbEffectsDefinition(PARTICLE* orbs){
vec_set(orbs.skill_x,player.x); <==
orbs.bmap = effect_bmp;
orbs.alpha = 50;
orbs.vel_x = random( 3 ) - 1.500;
orbs.vel_y = random( 3 ) - 1.500;
orbs.vel_z = random( 3 ) - 1.500;
orbs.size = 1;
orbs.gravity = 1;
orbs.flags |= (BRIGHT|MOVE|BEAM|OVERLAY);
orbs.event = orbEffect_spec_fun;
}
and in the orbEffect function:
vec_sub(orbs.x,orbs.skill_x);
vec_add(orbs.x,player.x);
vec_set(orbs.skill_x,player.x);