# How to Code Gravity Particle Burst & Confetti in Scratch > Give cloned particles random vx/vy and fade ghost effect to 100. Learn how to build gravity particle burst & confetti in Scratch with clean block architecture, pitfalls, and extensions. ## How the Mechanism Works (Minimal Example) Give cloned particles random vx/vy and fade ghost effect to 100. Understand which variable owns the state and when it resets on the green flag so you can reuse this pattern in any genre. **Gravity Particle Burst & Confetti core pattern** - Initialize state variables cleanly on green flag - Update gravity particle burst & confetti inside your main game loop - Test boundary values (0, max, and stage edges) Try it: Gravity Particle Burst & Confetti runs smoothly without race conditions or lag. ## Extensions, Common Pitfalls & Practice Once the minimal version works, add one audio or visual feedback cue and test with a friend. - Common pitfall: forgetting to reset state variables on green flag causes bugs on the second play. - Practice challenge: turn fixed speed or delay numbers into variables so you can tune game feel quickly. - [All 60 Scratch Game Mechanisms](/en/mechanisms/): Explore more reusable game systems. - [How to Make Games in Scratch (240 Guides)](/en/how-to-make/): Apply this mechanism to a complete game. ## Why It Works: Core Principles Behind "How to Code Gravity Particle Burst & Confetti in Scratch" (Game Mechanics Library) Every interactive mechanic in Scratch breaks down into four clear stages: read player input or events, update internal state variables, render the result on stage, and check win/loss or boundary conditions. Build the minimal version of "How to Code Gravity Particle Burst & Confetti in Scratch" first so you can verify the logic in seconds before adding art, polish, or extra levels. At its core, "How to Code Gravity Particle Burst & Confetti in Scratch" focuses on this key idea: Give cloned particles random vx/vy and fade ghost effect to 100. In real classroom instruction supervised by Takamasa Suzuki (Okinawa Minecraft Club Programming School "Crosswave", weva.jp), learners progress much faster once they can explain which variable holds state, which event triggers updates, and how the stage resets cleanly on every green-flag click. Always initialize sprite coordinates, direction, size, visibility, and variables explicitly at project start. A clean initialization sequence eliminates the notorious "you have to click the green flag twice" bug and makes testing predictable across Windows, macOS, Chromebooks, and iPads. ## Hands-On 3-Stage Progression: Prototype, Stress-Test, and Customize Follow this three-stage workflow to turn "How to Code Gravity Particle Burst & Confetti in Scratch" from a quick example into a polished, bug-free feature inside your own Scratch 3.0 project. Test after every small change instead of stacking 30 blocks at once. - Stage 1 (Minimal Working Test): Build only the core blocks for "How to Code Gravity Particle Burst & Confetti in Scratch" on a blank sprite and verify that the primary behavior works consistently on the very first green-flag click. - Stage 2 (Edge-Case & Variable Monitor Check): Turn on stage variable monitors and test boundary cases—zero, negative numbers, stage borders (-240 to 240, -180 to 180), rapid key presses, and clone cleanup. - Stage 3 (Original Art, Audio & Playtesting): Add custom vector/pixel costumes, balanced sound effects, clear instructions, and invite a friend or family member to playtest without hints so you can spot confusing moments immediately. ## Connecting to K–12 Learning, Official Scratch 3.0 & Next Steps Mastering "How to Code Gravity Particle Burst & Confetti in Scratch" strengthens math reasoning (coordinates, exterior angles, variables, probability), scientific modeling, and structured debugging. Once comfortable in Scratch 3.0, these exact patterns transfer smoothly into Python, Minecraft MakeCode, Roblox Studio, and web development. Keep your projects original and safe to share: avoid uploading third-party copyrighted characters or songs, never include real names or personal photos, and write clear Notes and Credits whenever you remix or learn from another creator. - [Complete Scratch Tutorial (Beginner to Advanced)](/en/tutorial/): Follow our structured end-to-end Scratch 3.0 tutorial roadmap. - [Scratch Block Dictionary (All 10 Categories)](/en/dictionary/): Look up every Motion, Looks, Control, Sensing, Operator, and Variable block. - [Interactive Scratch Labs (5 Browser Tools)](/en/tools/): Experiment live with coordinates, angles, boolean logic, lists, and probability. Updated: 2026-11-25 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/mechanisms/particle-burst/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)