How would I go about implementing a particle system with pictures?

In the unofficial 2k3 it wouldn't be possible, both because of picture limits (though frankly I've rarely used the limit provided), and the lack of ability to address the pictures by variables, but now both are possible and the limit is virtually non-existent (seriously, who would ever use up all 1000 images at once?), so how would I go about making an event-based particle system?
The same way you would implement then in any other program. But you need to use the variables to set the pictures coordinates, etc.
A tutorial targetted at people with programming skills can be found here, for example: http://natureofcode.com/book/chapter-4-particle-systems/

In general, the idea is simple:
- You have a number of particles. They can be invisible (dead) or visible and active. So you would assign a number of pictures, e.g. 901-1000, to the particles, and use "Show Picture" in a loop to load your particle graphic into all of them (at 100% transparency at first).
- Each particle (represented by a picture) has a state which you store in variables (maybe four: x, y, transparency, zoom - or five, incl. a frame counter, if you have a more complex calculation - plus maybe some fixed properties which each particle gets upon being spawned). You may represent dead particles as 100% transparent. To increase arithmetic accuracy, you can store things multiplied by 1000, and divide them only just before plugging them into "Move Picture".
- You have a particle "generator" which will "spawn" particles on certain conditions (can be an action taken by the user, a time limit, or the fact that another particle just died). It will pick the first available particle slot (i.e. a particle which is dead), if any, and "revive" it by giving it a transparency <100% and a starting position (can include some randomness of course).
- In a loop on every frame (i.e. a parallel process), you run your "generator" and update every particle. Upon updating, you have some kind of formula for each particle which decides in which way it moves/fades/zooms/..., i.e. in which way to calculate the next "state" based on the current one. After calculating that new state, you use "Move Picture" with a zero time and without wait to update the actual picture. Also, you have a condition to decide when a particle dies.

More specific example: Simple starfield. You would spawn your particles at a certain location (e.g. the middle of the screen), and give them two random "trajectory" values upon spawning them (let's say between -5 and +5) and set them to transparency 0, and maybe zoom 75%. On updating, you would add each particle's trajectory values to their current x and y positions, and increase the zoom by, let's say, 1%. The death condition could be if the particle's coordinates are beyond the screen borders.
Cherry, do you think you could possibly release a short demo showing a particle system in RM2k3? Something very basic, such as that bubbling fountain in the link you provided.

I'm sure many people would appreciate it, and it would greatly help illustrate new possibilities with the recent Show Picture functionality improvements.
I'm not sure that I got the time to do this, but we'll see...

Original thread: https://forums.rpgmakerweb.com/threads/how-would-i-go-about-implementing-a-particle-system-with-pictures.85476/