Host typegenerated
Effects
Particle effects, such as sparks and explosions. The particles are only drawn; they are not objects and nothing can touch them.
6 members · engine 0.1.0
Effects.burst(entity: Entity) -> numberPlays the particle burst set up on an object, at that object's position. Gives back how many particles were made.Effects.burst_at(entity: Entity, x: number, y: number) -> numberPlays the particle burst set up on an object at another position, such as where an enemy just died.Effects.emit(entity: Entity, count: number) -> numberThrows that many of an object's emitter particles at once, such as dust when landing. Gives back how many were made.Effects.live() -> numberHow many particles are currently on screen.Effects.play(entity: Entity) -> numberStarts the particle emitter set up on an object. Gives back 1.Effects.stop(entity: Entity) -> numberStops the particle emitter set up on an object; particles already out live out their life. Gives back 1.
- Source
- docs/generated/decay-api.json
- Schema
- v1
- Engine version
- 0.1.0
- Source commit
909aca81368b