发射粒子


描述

This action is used to create particles from an emitter. You supply the particle system ID that the emitter belongs to (as returned by the action Create Particle System) and then the actual emitter ID (as returned by the action Create Particle Emitter), and finally the particle type to create (as returned by the action Create Particle Type). You can then select to "Burst" or "Stream" the particles from the emitter, as well as give the number of them you want to create.

When you choose to stream particles, you do not need to place this action in a game frame event like the Step Event or the Draw event, but instead simply call it once in the Create Event (for example) and the emitter will stream particles every game frame until you call this action again to stop it (by setting the count value to 0). If you choose to burst the particles, then you can call this in any evet you choose and the particles will be created once.


动作语法:

Emit Particles Syntax


参数:

参数 描述
系统 The ID of the system that the emitter is in
发射器 The ID of the emitter to use
类型 The ID of the particle type to create
事件 The event type for the particles, either "Burst" or "Stream"
数量 The the number of particles to burst or stream


例如:

Emit Particles Example
The above action block code will create a particle emitter, set it's region, and then set it to emit a stream of particles.