D
Darren
Guest
I'm using part_system_automatic_update in my pause menu to pause the particles I use for explosions but it doesn't seem to be working. occasionally it will continue after I unpause but it seems 50/50, another issue is no matter what, I still see the explosion when I pause.
Can anybody tell me what I'm doing wrong here?
Here's my code
if pause = 1
{
if instance_exists(o_particles)
{
if part_emitter_exists(o_particles.system, o_particles.explosion_centre_part)
{
part_system_automatic_update(o_particles.explosion_centre_part, false);
}
if part_emitter_exists(o_particles.system, o_particles.explosion_particle_part)
{
part_system_automatic_update(o_particles.explosion_particle_part, false);
}
if part_emitter_exists(o_particles.system, o_particles.smoke_particle_part)
{
part_system_automatic_update(o_particles.smoke_particle_part, false);
}
}
I then have the same for if pause = 0 true on all of them, although this seems to make no difference whether I include it or not.
Can anybody tell me what I'm doing wrong here?
Here's my code
if pause = 1
{
if instance_exists(o_particles)
{
if part_emitter_exists(o_particles.system, o_particles.explosion_centre_part)
{
part_system_automatic_update(o_particles.explosion_centre_part, false);
}
if part_emitter_exists(o_particles.system, o_particles.explosion_particle_part)
{
part_system_automatic_update(o_particles.explosion_particle_part, false);
}
if part_emitter_exists(o_particles.system, o_particles.smoke_particle_part)
{
part_system_automatic_update(o_particles.smoke_particle_part, false);
}
}
I then have the same for if pause = 0 true on all of them, although this seems to make no difference whether I include it or not.