Video Sensing

This week we built a cool little game using the Video Sensing extension

Click the square down the bottom left of scratch to access the extensions

Click on the video sensing, it will load the new code blocks in

This extensions uses the camera on your device, it does not record or store any data

We first set up gravity for our character to always pull us down

Then we added the video sensing block to detect when there is motion

It changes the y direction of the character to move up and also change its costume. We then added the buildings sprite to scroll across the screen. The last thing we did was to add some code to our character that if we hit the buildings, its stops the game

Have a look at the full code below along with the project page

Next
Next

Breadcrumbs