ScratchData LogoScratchData
Back to kriblo_test's profile

Example 4: Using bounce to randomize

KRkriblo_test•Created June 16, 2024
Example 4: Using bounce to randomize
2
2
18 views
View on Scratch

Instructions

This example builds on Example 3 and uses an abstract bouncing circle to guide a snake. See inside. I've used bouncing objects in many projects, as a simple way to randomize stuff (e.g. Infinite Racing, see below). This example shows a simple way to do that, without having an actual bouncing sprite... does that make sense? ;) Either way, it has many advantages. For instance, see inside how the snake is initialized, that would have taken 100 frames (more than 3 seconds), if it had used an actual bouncing sprite. Of course, there are many ways to randomize, all appropriate in different situations, but I think this one is easy to understand. All code by me (@kriblo). Infinite Racing, uses a bouncing sprite to generate the randomly winding road: https://scratch.mit.edu/projects/656970872/

Project Details

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

Remix Information

Parent ProjectView Parent
Root ProjectView Root