ScratchData LogoScratchData
Back to DarthPickley's profile

variablespeak

DADarthPickley•Created August 27, 2008
variablespeak
2
1
53 views
View on Scratch

Description

this is a kind of test/example/presentation of ways to use the "Say [ Hello! ] " Block. you can just type the exact message that you want the sprite to say, like "Hello!". Or, you can use variables, currently all the main variables and all variables you can create. what the sprite says is exactly what would be shown in the variable screen if you showed the variable. of course, if you said "say (loudness)" or something like that, then it would say in the speech bubble the value of (loudness), like it shows when you display the variable (loudness), and the value would always be a number, for example, 31. maybe unlike you may think, though, boolean variables, like <loud?>, are not either a 1 or 0. they are instead either [true] or [false] (rectangles represent string variables). For this reason, if you used the line of code: "say <loud?>", it would result in the speech bubble saying either "true" or "false"; likewise, because it is not represented by a numerical value (0 or 1), you cannot place a boolean variable in a numerical-variable-shaped space, like: "(<loud?>*(loudness))

Project Details

Project ID251599
CreatedAugust 27, 2008
Last ModifiedAugust 27, 2008
SharedAugust 27, 2008
Visibilityvisible
CommentsAllowed