ScratchData LogoScratchData
Back to kriblo_test's profile

Example: Bounce ball in circle

KRkriblo_test•Created October 10, 2022
Example: Bounce ball in circle
18
10
146 views
View on Scratch

Instructions

A simple example of bouncing a small circle inside a larger circle. Sprites: - "Circle" is randomly placed on the stage when the green flag is clicked. - "Black Ball" uses the "point towards (Circle)" block to calculate the new angle after bouncing (no trigonometry). - "White Ball" does the same thing, but using trigonometry, which might come in handy, for instance, if you're using clones (which can't be "pointed towards"). See inside at "Black Ball" & "White Ball" and study the differences. All code by me (@kriblo). See it in action, Cookie's The Word: https://scratch.mit.edu/projects/744408358/

Project Details

Project ID743653557
CreatedOctober 10, 2022
Last ModifiedOctober 13, 2022
SharedOctober 10, 2022
Visibilityvisible
CommentsAllowed