ScratchData LogoScratchData
Back to kriblo_test's profile

Example 1: Bounce, but not on edge

KRkriblo_test•Created June 16, 2024
Example 1: Bounce, but not on edge
1
3
20 views
View on Scratch

Instructions

This simple example illustrates how to bounce a circle around the stage, without using the "if on edge, bounce"-block, which has its drawbacks. In addition to the inherent drawbacks of the block, the math-approach allows you to bounce inside any rectangle, larger or smaller than the stage itself. Besides, it's not very complicated. See inside. All code by me (@kriblo).

Project Details

Project ID1038198715
CreatedJune 16, 2024
Last ModifiedJune 16, 2024
SharedJune 16, 2024
Visibilityvisible
CommentsAllowed