Creates a new emitter in the given particle system.


GML Code Example


Argument Description
ps The particle system to create the emitter in.

Returns: Real


This function must be used to create a new emitter and assign it to a given particle system. The function will return the index value for the new emitter which must be stored in a variable and used in all further functions that reference the emitter, and the emitter itself must be destroyed when no longer being used to prevent memory leaks (this can be achieved using the specific emitter destroy functions or by destroying the whole particle system that the emitter belongs to).


GML Code Example

p_emit1 = part_emitter_create(Sname);

This will create a new particle emitter and store its index in the variable "p_emit".

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here