Search Header Logo
CHPATER 9: Functions in Scratch

CHPATER 9: Functions in Scratch

Assessment

Presentation

Computers

8th Grade

Practice Problem

Hard

Created by

Klea h

Used 1+ times

FREE Resource

7 Slides • 0 Questions

1

media

FUNCTIONS

2

media

​A function creating using my blocks in Scratch
It has no parameters. Which means the function will always perform the same task whenever it is called.

3

​A function creating using my blocks in Scratch
It has parameters. Which means the function will perform the task but with different results whenever it is called.

media
media

4

​A function creating using my blocks in Scratch
It has parameters. Which means the function will perform the task but with different results whenever it is called.

In this case, it will draw different shapes

media

5

​A function creating using my blocks in Scratch
It has parameters. Which means the function will perform the task but with different results whenever it is called.

In this case, it will draw different shapes

media

6

Racing Game - Speed Boost (With Parameters)

Description: Create a function that increases the speed of a racing car sprite when a "Boost" button is clicked.

Function Name: Speed Boost (amount)
Parameter:

  • amount → How much to increase the speed.

How It Works:

  • The function increases the speed of the car when called.

  • It should be used multiple times throughout the race.

  • Example calls:

    • Speed Boost (2) → Small speed boost.

    • Speed Boost (5) → Bigger boost.

media

7

web page not embeddable

Scratch - Imagine, Program, Share

You can open this webpage in a new tab.

media

FUNCTIONS

Show answer

Auto Play

Slide 1 / 7

SLIDE