Scratch & Motion Detection

Moving the Sprite, Bounce On Edge

Move your sprite forward. When your sprite touches the edge, rotate it some number of degrees. The sprite should appear to bounce from edge to edge.

Scratch moving bounce

Bounce on Camera Motion

Our sprite will continue moving. When there is video motion touching the sprite, rotate the sprite some number of degrees.

Scratch Motion detection

Bounce on Camera Motion of a certain color

We’ll make our camera motion more specific. We’ll make sure there is motion touching our sprite AND the sprite is touching a specific color.

Scratch Motion detection color

 

Pong?

What else can you do to extend your Scratch program? What would you need to add to recreate classic game Pong?

Comments

comments

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *