Scratch
Intermediate
50 mins
Teacher/Student led
+140 XP
What you need:
Chromebook/Laptop/PC or iPad/Tablet

Sound effects

Sound effects are a great way to improve a game or story. In this baseball game we'll add in sound effects for hitting the ball and the crowd.

Teacher Class Feed

Load previous activity

    1 - Create a new Scratch project

    Create a new Scratch project and delete the cat sprite.

    2 - Add the Baseball 2 backdrop

    Ass the Baseball 2 backdrop from the backdrop library.


    3 - Add and code the Batter sprite

    Add the Batter sprite from the sprite library and then add the following code to make her swing bat when you press the space bar.

    when green flag clicked go to x (169) y (37) switch costume to [batter-a v] // start with this costume when [space v] key pressed switch costume to [batter-b v] wait (.1) seconds switch costume to [batter-c v] wait (.1) seconds switch costume to [batter-d v] wait (.1) seconds



    4 - Add and code the Baseball sprite

    Add the Baseball sprite from the sprite library and give it the following code to set it up for the start and make it move towards the batter.

    when green flag clicked show set size to (25) % go to x (-210) y (45) // the middle of the left hand side forever change x by (10) // make it move to the right end



    123learn · Online learning platform

    Unlock the full learning experience

    You're previewing this lesson. Get full access to this lesson and hundreds more — each one ready to teach, with interactive activities, printable resources and pupil progress tracking built in.

    Hundreds of curriculum-aligned lessons
    Interactive activities in every lesson
    Printable resources & progress tracking
    Copyright Notice
    This lesson is copyright of Coding Ireland 2017 - 2026. Unauthorised use, copying or distribution is not allowed.

    Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at https://scratch.mit.edu
    🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more