ScratchData LogoScratchData
Back to papipupepappa's profile

Buttons Without* Sprites 3

PApapipupepappa•Created July 28, 2022
Buttons Without* Sprites 3
35
24
226 views
View on Scratch

Instructions

This is part 3 in a series of demonstrations of how you can make buttons (and other interactive elements) without sprites. In this part, it is randomly placed round buttons. Part 1: https://scratch.mit.edu/projects/717432085/ Part 2: https://scratch.mit.edu/projects/717777102

Description

✦✦✦ How does it work? ✦✦✦ The clicked button is determined by calculating the distance to each of the buttons. If the distance is within the radius of a button, then that button was clicked. Unlike part 1 and 2, the appearance of the clicked button is NOT achieved by using a series of backdrops. Since the button positions are random, it would be impossible (or at least extremely impractical). Instead, we draw it using the Pen extension. * This project DOES use a sprite, but only for drawing - NOT for detecting the mouse clicks.

Project Details

Project ID717777449
CreatedJuly 28, 2022
Last ModifiedJuly 28, 2022
SharedJuly 28, 2022
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root