ScratchData LogoScratchData
Back to Thescratchking123's profile

3D Buttons Simulator!

THThescratchking123•Created February 16, 2015
3D Buttons Simulator!
0
0
34 views
View on Scratch

Instructions

Click the button for a press animation. Hit space to create a new button under your pointer. HOW TO USE THE ENGINE Blocks: • Initialize: Clears the data from the last run. You don't have to use this block if you want to use buttons you've already created, but I personally prefer to re-create them at the beginning of every run (just to make sure nothing goes wrong). If you do use it, be sure to do so BEFORE you create any new buttons. • New button: This is where the magic happens. I'll walk you through its parameters: - Name: This is the name saved for the button. When you click a button, its name will be broadcasted. - X-Y position: The coordinates for the **center** of the button (the top of the button, not the vertical part). - Color: The button color. This uses the usual pen color system, I'm sure you can figure it out. - Height: This is the height of the vertical bottom part of the button, in pixels. - Width: The maximum width of the button, in pixels. - Depth: This is the height, in pixels, of the top/face of the button. - Border-radius: How round the button's corners are. If you imagine a circle in each corner of the button, this would be its radius. • Delete button: Delete a button by name. Broadcasts: • Name: When a button is clicked, its name will be broadcasted. Additionally, its status in the list "clicked" will change to "true" • "Render button text": This is broadcasted after each time the buttons are redrawn, just in case you want to incorporate a text engine (or anything else) atop the buttons.

Description

credit 2 @NickyNouse for letting me remix this awesome project!

Project Details

Project ID48265766
CreatedFebruary 16, 2015
Last ModifiedApril 3, 2015
SharedFebruary 16, 2015
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root