# Scratch How-To Reverse Lookup Dictionary (120 Recipes) > Find the exact Scratch blocks by what you want to build—jumping, chasing enemies, scores, timers, animations, lists, sound, and debugging (120 guides). Reverse-lookup 120 Scratch coding goals from movement and physics to enemy AI, scores, audio, lists, and optimization. ## Look Up Scratch Blocks by Your Goal (120 Guides) Don’t remember the block name? Start from what you want your project to do and jump straight to the minimal working block recipe. - [How to Make a Character Jump with Gravity](/en/howto/jump/): Use a y-velocity variable and constant gravity pull for smooth parabolic jumping. - [How to Add a Double Jump in Scratch](/en/howto/double-jump/): Track remaining jumps in a variable so the player can jump once more mid-air. - [How to Move a Sprite Smoothly Left and Right](/en/howto/smooth-walk/): Check key presses inside a forever loop instead of using choppy hat-block repeats. - [How to Move a Sprite in 4 Directions (Top-Down)](/en/howto/four-way-move/): Combine up/down y changes and left/right x changes for mazes and RPGs. - [How to Make a Sprite Follow the Mouse Pointer](/en/howto/follow-mouse/): Point toward the mouse and move only when the distance is greater than 10. - [How to Add a Dash or Sprint Button](/en/howto/dash-sprint/): Switch a speed variable between normal walk speed and fast sprint speed. - [How to Flip a Sprite Left/Right Without Going Upside Down](/en/howto/flip-left-right/): Set rotation style to left-right and alternate between 90° and -90°. - [How to Stop a Sprite from Walking Through Walls](/en/howto/wall-stop/): Immediately undo the last movement step if the sprite touches a wall. - [How to Create Slippery Ice Floor Physics](/en/howto/ice-slide/): Multiply x-velocity by a friction factor like 0.92 every frame. - [How to Make a Ball Bounce Off Stage Edges](/en/howto/bounce-edge/): Combine move steps with the built-in if-on-edge-bounce block. - [How to Wrap Around from One Edge of the Screen to the Other](/en/howto/screen-wrap/): Teleport x from >240 to -240 and vice versa for classic arcade wrap-around. - [How to Climb Up and Down Ladders](/en/howto/ladder-climb/): Disable gravity while touching a ladder and move vertically with up/down keys. - [How to Add Knockback When Hit by an Enemy](/en/howto/knockback/): Compare x positions and push the player away from the enemy. - [How to Make a Sprite Draggable with the Mouse](/en/howto/drag-drop/): Use set drag mode draggable or track mouse-down inside a repeat-until loop. - [How to Aim and Shoot Projectiles Toward the Mouse](/en/howto/aim-shoot/): Clone a bullet at the player, point it toward the mouse, and move until edge. - [How to Make an Enemy Chase the Player](/en/howto/chase-player/): Point the enemy toward the player sprite and step forward each frame. - [How to Make an Enemy Patrol Back and Forth](/en/howto/patrol-enemy/): Turn 180 degrees whenever the enemy crosses left or right patrol limits. - [How to Spawn Enemies at Random Positions](/en/howto/spawn-random/): Pick random coordinates before creating each clone. - [How to Create a Smooth Homing Missile](/en/howto/homing-missile/): Gradually steer direction toward the target instead of snapping instantly. - [How to Switch Between Multiple Boss Attack Patterns](/en/howto/boss-pattern/): Use a state variable to cycle through dash, spread shot, and pause phases. - [How to Add Invincibility Frames (i-Frames) After Damage](/en/howto/invincible-frame/): Set an invincible flag to 1 and blink ghost effect for 1 second. - [How to Build a Clean Rectangle Hitbox](/en/howto/hitbox-sprite/): Switch temporarily to a rectangular hitbox costume during collision checks. - [How to Defeat Enemies by Jumping on Top of Them](/en/howto/stomp-enemy/): Check whether y-velocity is negative (falling) at the moment of contact. - [How to Detect When the Player Enters Enemy Vision Range](/en/howto/line-of-sight/): Activate chase mode only when distance to player drops below a threshold. - [How to Add a Shield Block Button](/en/howto/shield-block/): Set a blocking variable to 1 while held and ignore damage while blocking. - [How to Add Random Critical Hits](/en/howto/critical-hit/): Roll a 1-in-5 random number to deal double damage. - [How to Build a Hit Combo Multiplier](/en/howto/combo-counter/): Increment combo on each hit and reset to 0 after a short timeout. - [How to Create Explosion Area-of-Effect (AoE) Damage](/en/howto/area-damage/): Broadcast explosion and damage all enemy clones within distance < 80. - [How to Give Each Enemy Clone Its Own Independent HP](/en/howto/enemy-hp-clone/): Create an "enemy HP" variable with "For this sprite only" selected. - [How to Spawn Enemies in Progressive Waves](/en/howto/wave-spawner/): Watch enemies-remaining and start the next wave when it hits 0. - [How to Add a Score Counter](/en/howto/add-score/): Reset score to 0 on green flag and change by +10 on item pickup. - [How to Track a High Score](/en/howto/high-score/): Update high score whenever the final score exceeds the stored record. - [How to Create a Countdown Timer](/en/howto/countdown-timer/): Start at 30 seconds, wait 1 second per tick, and broadcast time-up at 0. - [How to Measure Exact Clear Time with Decimals](/en/howto/stopwatch/): Reset the built-in sensing timer at start and record it at the finish line. - [How to Display a Visual Health (HP) Bar](/en/howto/hp-bar/): Switch bar costumes based on current HP or draw with the Pen extension. - [How to Show a Game Over Screen with Retry](/en/howto/game-over/): Broadcast game-over to stop loops, swap backdrop, and show a retry button. - [How to Advance to the Next Level on Stage Clear](/en/howto/stage-clear/): Increment a level variable and broadcast start-level to load the next stage. - [How to Build a Title Screen and Start Button](/en/howto/title-screen/): Show title art on green flag and broadcast start-game when Play is clicked. - [How to Add a Pause / Resume Toggle](/en/howto/pause-game/): Skip movement updates whenever a paused variable equals 1. - [How to Add Easy / Normal / Hard Difficulty Buttons](/en/howto/difficulty-select/): Set enemy speed and spawn delay variables before broadcasting start. - [How to Keep a Top-5 Score Leaderboard in a List](/en/howto/ranking-list/): Insert each new score in sorted order and trim anything past item 5. - [How to Build an XP & Level-Up System](/en/howto/level-up/): When XP reaches the threshold, increase Level and boost stats. - [How to Create an In-Game Coin Shop](/en/howto/money-shop/): Verify coins >= price before deducting coins and adding the item to inventory. - [How to Pop Up Achievement Unlock Banners](/en/howto/achievement/): Trigger a one-time notification flag when a milestone is reached. - [How to Generate a Copyable Save Code (Password)](/en/howto/save-code/): Join level and coin values with a separator so players can resume later. - [How to Animate a Walking Character](/en/howto/walk-animation/): Cycle costumes every 0.1 seconds only while a movement key is held. - [How to Fade Sprites In and Out Smoothly](/en/howto/fade-in-out/): Step the ghost effect from 100 down to 0 over 10 frames. - [How to Add Screen Shake on Impacts](/en/howto/screen-shake/): Offset camera/background x and y randomly for a few short frames. - [How to Spawn Sparkle or Smoke Particles](/en/howto/particle-effect/): Clone tiny dots that fly outward while fading ghost effect to 100. - [How to Display RPG Typewriter Text One Letter at a Time](/en/howto/typewriter-text/): Append one character per loop into a display variable. - [How to Sync a Two-Character Conversation](/en/howto/speech-dialogue/): Use broadcast-and-wait between lines so timing never drifts. - [How to Create an Endless Scrolling Background](/en/howto/background-scroll/): Place two background sprites side by side and recycle each at x < -480. - [How to Add Parallax Depth with Multi-Speed Layers](/en/howto/parallax-bg/): Scroll distant hills slowly (-1) and foreground ground faster (-5). - [How to Transition from Day to Sunset and Night](/en/howto/day-night/): Gradually adjust backdrop brightness effect over time. - [How to Make Rain or Snow Fall Across the Stage](/en/howto/rain-snow/): Clone droplets at random top x positions and delete them at the bottom. - [How to Leave a Glowing Trail Behind a Moving Sprite](/en/howto/rainbow-trail/): Clone behind the sprite and shrink while increasing ghost effect. - [How to Grow Menu Buttons on Mouse Hover](/en/howto/button-hover/): Scale to 110% while touching mouse-pointer and 100% otherwise. - [How to Render Custom Sprite Digits Instead of Variable Monitors](/en/howto/custom-number/): Stamp 0–9 digit costumes for each character of the score string. - [How to Draw a Corner Minimap](/en/howto/minimap/): Scale world coordinates by 0.1 and plot a small dot in the corner. - [How to Create a Flashlight / Dark Room Spotlight Effect](/en/howto/spotlight/): Keep a large black sprite with a transparent center hole centered on the player. - [How to Play an Opening Cutscene Before Gameplay](/en/howto/cutscene-intro/): Broadcast-and-wait for the intro sequence before starting the main game loop. - [How to Clear a Speech Bubble Immediately](/en/howto/speech-balloon-hide/): Run a "say ()" block with an empty text input. - [How to Fix Sprites Hiding Behind UI or Background](/en/howto/layer-order/): Explicitly send UI to front layer and decorative scenery to back layer. - [How to Zoom In and Out on a Scene](/en/howto/zoom-camera/): Multiply sprite size and offset distance from camera center by a zoom factor. - [How to Flash an Enemy White on Hit](/en/howto/flash-white/): Spike brightness effect to 80 for 0.08 seconds, then reset to 0. - [How to Loop Background Music Seamlessly](/en/howto/loop-bgm/): Use "play sound until done" inside a forever loop—never "start sound". - [How to Switch Music Tracks Between Title and Battle](/en/howto/switch-bgm/): Stop other scripts in the music sprite and stop all sounds before starting the new loop. - [How to Add a Mute / Unmute Audio Button](/en/howto/mute-button/): Toggle volume between 0% and 100% when clicked. - [How to Raise Sound Pitch as Combo Increases](/en/howto/pitch-combo/): Set pitch effect proportional to the current combo count. - [How to Make Characters Speak Out Loud (Text-to-Speech)](/en/howto/voice-speak/): Add the Text-to-Speech extension to read dialogue or quiz questions aloud. - [How to Compose Original Melodies with the Music Extension](/en/howto/music-melody/): Choose an instrument, set tempo, and sequence MIDI note numbers. - [How to Fix Buzzing or Distorted Sound Effects](/en/howto/sound-overlap-fix/): Wait until the trigger condition ends before allowing the sound to play again. - [How to Play Footstep Sounds Only While Moving](/en/howto/footstep-sound/): Check a moving flag in a separate loop with a 0.25-second step interval. - [How to Fade Out Music Smoothly at Level End](/en/howto/fade-out-bgm/): Lower volume by -10 ten times, stop all sounds, then restore volume to 100%. - [How to Sync Visual Pulses to a Song BPM](/en/howto/beat-sync/): Calculate beat length as 60 / BPM and compare against the timer. - [How to Build a 10-Question Quiz Using Lists](/en/howto/quiz-list/): Store questions and answers in parallel lists and step through by index. - [How to Pick Random Items Without Repeats](/en/howto/no-repeat-random/): Delete each selected item from a working copy list after drawing it. - [How to Shuffle a List (Fisher-Yates Style)](/en/howto/shuffle-deck/): Swap each position with a random index in the list. - [How to Build an Item Inventory System](/en/howto/inventory-system/): Add picked-up items to an inventory list and check "list contains item" at doors. - [How to Create Weighted Probability Drops (Common / Rare)](/en/howto/gacha-weight/): Roll 1–100 and assign ranges (1–5 Rare, 6–25 Uncommon, 26–100 Common). - [How to Check Letter-by-Letter Typing Input](/en/howto/typing-check/): Compare key press against letter (pos) of the target word and advance pos. - [How to Find the Maximum Value in a List](/en/howto/find-max-list/): Initialize max to item 1 and update whenever a larger item is found. - [How to Calculate the Average of a List of Numbers](/en/howto/average-calc/): Sum every item in a loop, then divide by the length of the list. - [How to Filter and Search a List by Keyword](/en/howto/search-word/): Use the "contains" operator to collect matching entries into a results list. - [How to Store a 2D Tile Grid Inside a 1D List](/en/howto/grid-map/): Convert (col, row) into index ((row - 1) * width) + col. - [How to Add an Undo Button Using a History Stack](/en/howto/undo-action/): Push each state onto a history list and pop the last item on Undo. - [How to Split a Sentence into Words](/en/howto/word-split/): Read character by character and push a new word whenever a space appears. - [How to Format Numbers with Leading Zeros (005)](/en/howto/zero-pad/): Join a "0" prefix whenever the number is less than 10. - [How to Round a Number to 1 Decimal Place](/en/howto/round-decimal/): Multiply by 10, round to nearest integer, then divide by 10. - [How to Sort a List from Smallest to Largest](/en/howto/sort-list/): Compare adjacent pairs and swap out-of-order values (bubble sort). - [How to Draw Any Regular Polygon with the Pen](/en/howto/draw-polygon/): Repeat N times: move forward and turn (360 / N) degrees. - [How to Draw a Smooth Circle with the Pen](/en/howto/draw-circle/): Repeat 36 times moving a small step and turning 10 degrees. - [How to Build a Mouse Drawing / Paint App](/en/howto/mouse-paint/): Follow the mouse pointer and toggle pen down/up based on mouse-down. - [How to Use Pen Stamp to Bypass the 300-Clone Limit](/en/howto/stamp-tile/): Stamp static tiles and sprites directly onto the stage layer. - [How to Build a Working Real-Time Analog Clock](/en/howto/analog-clock/): Multiply current second/minute by 6° and hour by 30°. - [How to Plot a Bar Graph from a Data List](/en/howto/bar-graph/): Draw vertical pen lines whose heights match each list entry. - [How to Build a Clickable Calculator App](/en/howto/calculator-app/): Append clicked digits with join and evaluate when = is pressed. - [How to Create a Study Flashcard App](/en/howto/flashcard-app/): Toggle front/back on click and move mastered cards out of the active list. - [How to Make a Spinning Wheel That Slows Down Naturally](/en/howto/roulette-wheel/): Multiply turn speed by 0.97 each frame until it drops below 0.2. - [How to Build a Lucky Fortune / Random Picker App](/en/howto/omikuji-app/): Shake the box sprite briefly, then display a random fortune costume. - [How to Play a Mini Keyboard Piano](/en/howto/piano-keyboard/): Bind A, S, D, F keys to MIDI notes 60, 62, 64, 65. - [How to Build a Multi-Language Translator App](/en/howto/translate-app/): Combine the Translate and Text-to-Speech extensions. - [How to Create a Webcam Motion Game](/en/howto/camera-game/): Use the Video Sensing extension to detect hand movement over sprites. - [How to Build a Study / Focus Timer (25 min + 5 min)](/en/howto/timer-pomodoro/): Count down study minutes, chime, and automatically switch to break mode. - [How to Create a Branching Choose-Your-Own-Adventure](/en/howto/qr-story/): Wire choice buttons to different story-scene broadcasts. - [How to Fix Lag and Slow Frame Rates in Scratch](/en/howto/fix-lag/): Remove unused forever loops, delete finished clones, and minimize color-touching checks. - [How to Run Loops Instantly with "Run Without Screen Refresh"](/en/howto/custom-block-speed/): Enable the fast checkbox on custom blocks that draw or scan grids. - [How to Prevent Clones from Hitting the 300-Clone Cap](/en/howto/clone-limit-300/): Use a sprite-only "isClone" variable so only the original sprite responds to spawn broadcasts. - [How to Fix Projects That Need Two Green Flag Clicks](/en/howto/reset-clean/): Broadcast-and-wait an "init" message before starting any game loops. - [How to Debug Logic Bugs by Showing Live Variables](/en/howto/debug-variable/): Turn on stage variable monitors to compare expected vs. actual values. - [How to Organize Large Scripts into Clean Modules](/en/howto/split-sprites/): Break movement, collision, and animation into named My Blocks with comments. - [How to Share Scratch Projects Safely Online](/en/howto/share-safely/): Check for personal info and write clear instructions and credits before sharing. - [How to Remix Another Project Respectfully](/en/howto/remix-credit/): Add meaningful changes and clearly credit the original creator. - [How to Back Up Your Project as a Local .sb3 File](/en/howto/save-sb3-backup/): Use File -> Save to your computer before major edits. - [How to Add On-Screen Touch Buttons for iPad & Mobile](/en/howto/tablet-controls/): Place left, right, and jump button sprites that set input variables while pressed. - [How to Run Faster or Package as HTML with TurboWarp](/en/howto/turbowarp-export/): Load your .sb3 file in TurboWarp for 60 FPS testing or standalone HTML export. - [How to Use Cloud Variables for Online High Scores](/en/howto/cloud-multiplayer/): Store numbers only and throttle cloud updates to at least 0.1 seconds apart. - [How to Control a Scratch Sprite by Tilting a micro:bit](/en/howto/microbit-tilt/): Connect via Scratch Link and read tilted-left / tilted-right sensors. - [How to Translate Your Scratch Logic into Python](/en/howto/scratch-to-python/): Map Scratch variables, repeat loops, and if blocks directly to Python syntax. - [How to Present Your Scratch Project in Class or Contests](/en/howto/presentation-demo/): Use a 3-part demo: 30-second live play, 1 proud script, and 1 bug you solved. Updated: 2026-11-23 Author: [Takamasa Suzuki](https://scratch.gmnavi.jp/about/author/) Japanese Edition: https://scratch.gmnavi.jp/howto/ [Scratch Daizen (English)](https://scratch.gmnavi.jp/en/)