Ever see a game with snazzy particle effects when something explodes?
*cough* my latest game, SCR *cough*
If you haven't, go here to check it out.
Example project (Extreme Particles): here!
Particles in Scratch are just a bunch of small sprites that originate from a point and spread outward like fireworks. Here's how to add particles to your game!
1. Export a sprite from the above project and import it into your game.
2. Alter the costume of the sprite to make it fit your game--just don't make it too big!
3. Set the name on the "Go to" block to the name of the sprite you want the effect to originate from. In my example project, it's "Spike."
4. Duplicate the particle sprite until you have the desired number of particles. My game SCR uses 15, and the example--just for lulz--uses 70! I'd recommend around 15--if you use too many (like in the example project), the sprites look kinda gridded and unnatural.
5. On the origin point sprite (Spike in the example), whenever you want an explosion, hide the origin point sprite and broadcast "SummonParticles."
That's it! You should have particles working in your game now!
Here's the scripts for quick reference:
Particle:
Origin point:
If you find this tutorial helpful, leave a reply! ;D
Last edited by cpumaster930 (2011-09-05 16:56:52)
Offline
I remember Notch(creator of Minecraft) said that particles were very important. Particles, Particles, Particles!
This is a cool script, but it may be a bit challenging. I like to make different costumes for particles.
Good game, by the way
Offline