NEU Entdecke Block-Lexikon, Programmierkonzepte, Spiel-Tutorials und Unterrichtshilfen

Jetzt starten →

Scratch Ziel-Nachschlagewerk (How-To) — Scratch How-To Reverse Lookup Dictionary (120 Recipes)

📌 Das lernst du hier

Baue zuerst einen minimalen spielbaren Prototyp und verfeinere danach Tempo, Sound und Level. Find the exact Scratch blocks by what you want to build—jumping, chasing enemies, scores, timers, animations, lists, sound, and debugging (120 guides).

Kernidee & Umsetzungsschritte: Look Up Scratch Blocks by Your Goal (120 Guides)

Baue zuerst einen minimalen spielbaren Prototyp und verfeinere danach Tempo, Sound und Level.

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

Dieser Leitfaden dient dem Lernen. Oberfläche und Bedingungen von Scratch können sich ändern; bitte prüfe auch die offizielle Scratch-Website.