Discuss Scratch
- Discussion Forums
- » Suggestions
- » more types of custom blocks and a percentage block
- CakeandBott
-
Scratcher
100+ posts
more types of custom blocks and a percentage block
ST, can you add more types of custom blocks? and the variables will only need to be used for values of things like speed and health
like…
like…
<a boolean custom block with inputs <> () [] :: custom>and……
(a reporter custom block with inputs <> () [] :: custom
a C block <> :: custom cstart
end
a block for custom C blocks to run the script inside with slots like (this :: custom stack):: control
and the ability to add menus to blocks such as [lists v] and [custom things in the menus v] :: custom
define the list (this)so you can do things like…..
and insert lists and other things into menus like (this) :: list
encode [] into [cloud variable v]and allow different colors for custom blocks
define encode [text] into (variable)
encoding blocks...... :: grey
like this :: motionand add a percentage block for things like health bars so people can make health bars with a simple script like (if the health bar used twelve costumes and had a max health of 100 and a current health of 86) this:
when green flag clicked
forever
switch costume to (percentage (12) of (86) max:(100) :: operators)
end
Last edited by CakeandBott (June 10, 2016 00:36:44)
- Sheep_maker
-
Scratcher
1000+ posts
more types of custom blocks and a percentage block
Duplicate?
And support, assuming that
And support, assuming that
go to x: (100) y: (set x to (0)::custom)will go to 0, 100.
define set x to (num)
set x to (num)
return [100]::custom-arg cap
- CakeandBott
-
Scratcher
100+ posts
more types of custom blocks and a percentage block
Duplicate?yes, with a
And support, assuming thatgo to x: (100) y: (set x to (0)::custom)will go to 0, 100.
define set x to (num)
set x to (num)
return [100]::custom-arg cap
report [] :: custom-arg capblock, and,
if <is (answer) a [number v] :: custom> thenalso I never saw that ST also add C hat blocks and
say (join (answer) [is a number!])
end
define is (text) a (text type)
if <(text) < [100000000000000000000]> then
if <(text type) = [number]> then
report true :: custom-arg cap
end
end
and so on...... :: grey
and for the text not being the type of text...... :: grey
report false :: custom-arg cap
or..... :: grey
report <some kind of boolean :: grey> :: custom-arg cap
custom hats :: custom hat
Last edited by CakeandBott (June 10, 2016 00:17:39)
- Muffins07
-
Scratcher
9 posts
more types of custom blocks and a percentage block
where do people get the ‘TYPE’ block?
- CakeandBott
-
Scratcher
100+ posts
more types of custom blocks and a percentage block
where do people get the ‘TYPE’ block?what do you mean?
- MathlyCat
-
Scratcher
1000+ posts
more types of custom blocks and a percentage block
1. For a majority of your first suggestion their is a mega thread for it that you can go ahead and support. 
2. Percentage block workaround:
(The way I assume you want it)
The workaround for the way you have it in the post:
Multiply: 0.12 * 0.86
I won't teach simple things like simplifying fractions, I understand your school curriculum may have not gone over it.
No support

2. Percentage block workaround:
(The way I assume you want it)
set [Percent v] to [((50) * (.01)) ]Percentages are a decimal value written as an integer. If you want percentages out of something that's not 100… Teach yourself about simplifying fractions. Eventually: 45/100 = 135/300, it can get a little messy with non-rounded numbers or odd numbers. Prime numbers make it even worse.
The workaround for the way you have it in the post:
Multiply: 0.12 * 0.86
I won't teach simple things like simplifying fractions, I understand your school curriculum may have not gone over it.

No support
- CakeandBott
-
Scratcher
100+ posts
more types of custom blocks and a percentage block
1. For a majority of your first suggestion their is a mega thread for it that you can go ahead and support.it would be easier for new users
2. Percentage block workaround:
(The way I assume you want it)set [Percent v] to [((50) * (.01)) ]Percentages are a decimal value written as an integer. If you want percentages out of something that's not 100… Teach yourself about simplifying fractions. Eventually: 45/100 = 135/300, it can get a little messy with non-rounded numbers or odd numbers. Prime numbers make it even worse.
The workaround for the way you have it in the post:
Multiply: 0.12 * 0.86
I won't teach simple things like simplifying fractions, I understand your school curriculum may have not gone over it.
No support

- MathlyCat
-
Scratcher
1000+ posts
more types of custom blocks and a percentage block
It would be of little help because most new users are at the age range where:1. For a majority of your first suggestion their is a mega thread for it that you can go ahead and support.it would be easier for new users :|
2. Percentage block workaround:
(The way I assume you want it)set [Percent v] to [((50) * (.01)) ]Percentages are a decimal value written as an integer. If you want percentages out of something that's not 100… Teach yourself about simplifying fractions. Eventually: 45/100 = 135/300, it can get a little messy with non-rounded numbers or odd numbers. Prime numbers make it even worse.
The workaround for the way you have it in the post:
Multiply: 0.12 * 0.86
I won't teach simple things like simplifying fractions, I understand your school curriculum may have not gone over it.
No support
-They learn about fractions in school
-Will learn about simplifying
- Sheep_maker
-
Scratcher
1000+ posts
more types of custom blocks and a percentage block
If you want the percent:
((is::grey)/(of::grey))if you want to display the percent:
(join(((is::grey)/(of::grey))*(100))[%])
- Lythium
-
Scratcher
1000+ posts
more types of custom blocks and a percentage block
Workaround for percentage:
(((Whatever number) / (some other number)) * (100)
- f1lip
-
Scratcher
1000+ posts
more types of custom blocks and a percentage block
Support for different colors since then it will be more understandable of what the block does.
- CakeandBott
-
Scratcher
100+ posts
more types of custom blocks and a percentage block
Workaround for percentage:actually(((Whatever number) / (some other number)) * (100)
([ceiling v] of (((current number) * (maximum percent)) / (maximum number)))or
([floor v] of (((current number) * (maximum percent)) / (maximum number)))
Last edited by CakeandBott (June 21, 2016 02:47:31)
- Sheep_maker
-
Scratcher
1000+ posts
more types of custom blocks and a percentage block
You can have decimals in percents, such as 12.5% (aka 0.125)Workaround for percentage:actually(((Whatever number) / (some other number)) * (100)([ceiling v] of (((current number) * (maximum percent)) / (maximum number)))or([floor v] of (((current number) * (maximum percent)) / (maximum number)))
- CakeandBott
-
Scratcher
100+ posts
more types of custom blocks and a percentage block
that's not what I wantYou can have decimals in percents, such as 12.5% (aka 0.125)Workaround for percentage:actually(((Whatever number) / (some other number)) * (100)([ceiling v] of (((current number) * (maximum percent)) / (maximum number)))or([floor v] of (((current number) * (maximum percent)) / (maximum number)))

- Discussion Forums
- » Suggestions
-
» more types of custom blocks and a percentage block