Unlock AI power-ups — upgrade and save 20%!
Use code STUBE20OFF during your first month after signup. Upgrade now →

By Blueberri
Published Loading...
N/A views
N/A likes
Creating a Chasing Game in Scratch
📌 The tutorial guides users through building a basic chasing game using the Scratch programming environment.
🖱️ The first step involves deleting the default Scratch Cat sprite and creating a simple player sprite, customized here as a red square.
🕹️ Player movement is implemented using an up arrow, down arrow, right arrow, and left arrow key detection within a `forever` loop, controlling changes in X and Y coordinates ( steps).
Implementing the Enemy (Chaser Sprite)
👻 An intimidating enemy sprite (a red square) is created to pursue the player.
🎯 The enemy is programmed to point towards the player (Sprite 1) within a `forever` loop and move a fixed number of steps (initially 10, later nerfed to 9 steps for slower pursuit).
⏱️ To ensure a fair start, the enemy is set to go to a random position initially and only begins actively chasing after a delay (though the provided code only waits before starting movement, it doesn't implement a specific time delay before the *chase* begins).
Game Logic and Enhancements
🛑 The game-over condition is set: if the enemy touches the player (Sprite 1), the game executes `stop all`.
⏱️ A timer mechanism is added by initializing a `time` variable to zero and using a loop that runs `wait 1 second` then `change time by 1`, giving players a metric for performance.
🎵 Optional enhancements include adding a background and infinitely looping background music from the Scratch sound library.
Advanced Feature: Adding Lasers
🔥 An advanced feature involves adding two spinning lasers to increase difficulty ("make it even more spicy").
🔄 The lasers are programmed to spin forever fast; the creator suggests leaving a small hole in the middle to allow player passage.
⚠️ A critical step involves attaching the `stop all` logic (touching the enemy) to the player sprite's control blocks, fixing an error where the logic was incorrectly placed in the enemy sprite's code.
Key Points & Insights
➡️ Sprite creation and control involves using the `when green flag clicked`, `forever` loop, and `if key pressed` blocks for player navigation.
➡️ The chasing mechanic relies on combining the `point towards [Player Sprite]` block with constant movement steps.
➡️ Adding timing and obstacles (lasers) provides replayability and challenge beyond simple evasion.
➡️ The creator highlights the importance of testing and debugging, specifically correcting the placement of the game-ending script onto the correct sprite.
📸 Video summarized with SummaryTube.com on Nov 17, 2025, 13:35 UTC
Find relevant products on Amazon related to this video
As an Amazon Associate, we earn from qualifying purchases
Full video URL: youtube.com/watch?v=zq8ADsEdh4g
Duration: 8:33

Summarize youtube video with AI directly from any YouTube video page. Save Time.
Install our free Chrome extension. Get expert level summaries with one click.