Null-Z
Member
I'm trying to create an "after image" effect for a projectile object.
the problem is the projectile itself changes it's angle on creation to point toward the player object. I've tried
but that does nothing.
(obj_ParticleExper is the object I want the particle to match angle orientation.)
what am I missing to make this work?
the problem is the projectile itself changes it's angle on creation to point toward the player object. I've tried
Code:
///particle system
part1_sys = part_system_create();
//particles
part1 = part_type_create()
part_type_sprite(part1,spr_BJewlFde,false,false,false);
part_type_size(part1,0.001,1,0,0,);
part_type_color1(part1,c_black);
part_type_alpha2(part1, 0.5, 0);
part_type_life(part1,20,20);
//particle emiter
part1_emit = part_emitter_create(part1_sys);
part_emitter_region(part1_sys,part1_emit,x-40,x+40,y-40,y+40,ps_shape_ellipse,ps_distr_gaussian);
Code:
part_type_orientation(part1,point_direction(x,y,obj_ParticleExper.x,obj_ParticleExper.y), point_direction(x,y,obj_ParticleExper.x,obj_ParticleExper.y), false, false, false);
part_emitter_burst(part1_sys,part1_emit,part1,5);
part_emitter_region(part1, part1_emit, obj_ParticleExper.x , obj_ParticleExper.x, obj_ParticleExper.y, obj_ParticleExper.y,
ps_shape_line, ps_distr_gaussian );
(obj_ParticleExper is the object I want the particle to match angle orientation.)
what am I missing to make this work?
Last edited: