ScratchData LogoScratchData
Back to kriblo_test's profile

Example: Bouncing off-screen

KRkriblo_test•Created March 26, 2024
Example: Bouncing off-screen
12
4
86 views
View on Scratch

Instructions

In this simple example, in each frame, the x/y position of the Ball is divided by a factor before the Ball is moved and bounced if touching the edge. After the move, the x/y position is multiplied by the same factor. All code by me (@kriblo). Click the green flag again to re-randomize direction of the Ball. This weird example was created in response to this question: https://scratch.mit.edu/users/kriblo/#comments-321109121

Project Details

Project ID990328400
CreatedMarch 26, 2024
Last ModifiedMarch 26, 2024
SharedMarch 26, 2024
Visibilityvisible
CommentsAllowed