How to use the "if on edge, bounce" block in Scratch? Preview

One of the first programs we make on Scratch is to make our sprite move forward in a given direction. The problem is that when it reaches the edge of the screen it ceases to move. This block will help us solve this very problem!

To access the full video please subscribe to FLLCasts.com

Subscribe

  • #1578
  • 22 Mar 2020

content picture

The "if on edge, bounce" block does exactly what it says. Every time it is executed, it checks if the sprite is on the edge of the screen and if it is, it prevents it from going on. It also rotates it 180°.

This is very useful if we use movement in steps that is always in a straight direction.

This means that a movement of a few steps in conjunction with "if on edge, bounce" gives us a program in which the sprite moves left and right between the two corners of the screen!

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for Keep 'em clean - remote Scratch game course
  • 41
  • 0:00
  • 70
Image for Lesson 2 - Control by using the camera
  • 6
  • 3
  • 8
  • 3d_rotation 0