itch.io is community of indie game creators and players

Devlogs

Update 2023.04.23 Important fix and new function

Lime.Particles
A downloadable asset pack

Important fix of the "advanced_part_emitter_burst" function. And also a new function "advanced_part_particles_burst".

  • "advanced_part_emitter_burst" now works as it should and additionally takes an optional argument with the name of the timer variable, which it uses to correctly count the number of generated particles per second. This fix was needed to avoid situations when you use this function in one place with the same particle or in one emitter and the timer variable breaks. The new argument which comes after "number" is optional, but can be used in the above described case, e.g. like this:
advanced_part_emitter_burst(global.APSMain, PartEmit, FirePart, 16, "a");
advanced_part_emitter_burst(global.APSMain, PartEmit, CinderPart, 4, "b");
  • New function "advanced_part_particles_burst". It works the same as "advanced_part_emitter_burst", but does not require emitter creation.
  • The functions "advanced_part_emitter_burst", "advanced_part_particles_burst" and "advanced_particles_particles_create" now return an array with currently created particles. Which can be used later to change the particle variables, for example like this:
var _particles = advanced_partic_particles_burst(global.all_particles, x, y, part_tire_smoke, 10);
    array_foreach(_particles, function(_elm) {
    _elm.angle_increase *= choose(-1,1);
})

To update, simply import the "AdvancedParticleSystem" script into your project with replacements.

Files

  • Advanced Particle System 2023.04.23.yymps 301 kB
    Apr 23, 2023
Download Lime.Particles
Leave a comment