How to Build a Dynamic Particle System in Rive Using Scripting and the AI agent
I built a fully dynamic particle system in Rive using the new scripting feature and the Rive AI Agent.
The goal wasn’t the snow effect itself, but designing a reusable particle mechanism:
one script
particles as Artboards
input-driven control over count, speed, wind, scale, and parallax
bound to the Artboard size using data binding, so the system is fully responsive
no keyframes for the particles
I started smallת animating a single shape, and then gradually added more depth and behavior.
The system was built step by step using the Rive AI Agent to iterate on the logic
and keep the code clean, readable, and flexible.
The same setup can easily be reused for rain, confetti, dust, or layered particle systems running in parallel.
Full step by step tutorial on Youtube (video):
https://youtu.be/gIlCW5TRYw4
I also wrote a full article breaking down the system, including the mental model and the exact prompts I used with the AI Agent.
Article:
https://www.rivemasterclass.com/blog/build-dynamic-particales-sytem-scripting-ai-agent-rive
Happy to answer questions or dive deeper into specific parts :)
#scripting #aiagent #particle