part_emitter_burst

从指定的发射器中单步迸发粒子。

语法:

part_emitter_burst(ps, ind, parttype, number);


参数 描述
ps 发射器所处的粒子系统。
ind 要迸发粒子的发射器索引。
parttype 所创建的粒子索引(类型)。
number 要创建粒子的数量。


返回: N/A(无返回值)


描述

This function allows you to set an emitter to burst a specific type of particle and is typically used in alarms and destroy events as it is a one off code that creates the number of particles specified all at once following the distribution, shape and position set by the function part_emitter_region. Should you need the particles to appear every step, you should be using the function part_emitter_stream rather than calling this function every step.


例如:

part_emitter_burst(global. Sname, p_emit1, p1, 30 + irandom(30));

上述代码会从所选发射器迸发30到60个随机数量的粒子。


上一页:粒子
下一页:part_emitter_stream
© Copyright YoYo Games Ltd. 2018 All Rights Reserved