part_particles_count

Returns the number of particles presently created in a given system.

语法:

part_particles_count(ind);


参数 描述
ind The index of the particle system.


返回: Real(实数)


描述

With this function you can check to see if a particle system currently has any particles created in the room, and it will return the number of them too.


例如:

if part_particles_count(Sname) = 0
   {
   part_system_destroy(Sname);
   instance_destroy();
   }

The above code will check the number of particles in the local particle system indexed in the variable "Sname" and if there are none, it will destroy the system and then the instance.


上一页: Particle Systems
下一页: part_system_automatic_update
© Copyright YoYo Games Ltd. 2018 All Rights Reserved