Discuss Scratch

TheUltermateFollower
Scratcher
21 posts

A between block (or blank to blank block)

Ok, so I want a scratch block that looks like this.

(() to ():: sensing)
or
(() to ():: operators)

It would be useful as you can make scripts like this

if <<(mouse x) = ((56) to (-56):: sensing)> and <(mouse y) = ((85) to (45):: sensing)>> then
do something
or
if <<(mouse x) = ((56) to (-56):: operators)> and <(mouse y) = ((85) to (45):: operators)>> then
do something

There is a way to do this by making a list and adding all the x or y places, but that is very time consuming.


It probably should be green but it could be used in operations.


Please submit your thoughts

Last edited by TheUltermateFollower (July 25, 2016 07:33:44)

24691357
Scratcher
100+ posts

A between block (or blank to blank block)

TheUltermateFollower wrote:

Ok, so I want a scratch block that looks like this. except green

(() to ())

It would be useful as you can make scripts like this

if <<(mouse x) = ((56) to (-56))> and <(mouse y) = ((85) to (45))>> then
do something


Please submit your thoughts
Round or hexagon blocks need to have a single value. Maybe something like this?
<() is between () and () :: operators>
TheUltermateFollower
Scratcher
21 posts

A between block (or blank to blank block)

24691357 wrote:

TheUltermateFollower wrote:

Ok, so I want a scratch block that looks like this. except green

(() to ())

It would be useful as you can make scripts like this

if <<(mouse x) = ((56) to (-56))> and <(mouse y) = ((85) to (45))>> then
do something


Please submit your thoughts
Round or hexagon blocks need to have a single value. Maybe something like this?
<() is between () and () :: operators>

should it be blue or green, sensing or operations
TheUltermateFollower
Scratcher
21 posts

A between block (or blank to blank block)

24691357 wrote:

TheUltermateFollower wrote:

Ok, so I want a scratch block that looks like this. except green

(() to ())

It would be useful as you can make scripts like this

if <<(mouse x) = ((56) to (-56))> and <(mouse y) = ((85) to (45))>> then
do something


Please submit your thoughts
Round or hexagon blocks need to have a single value. Maybe something like this?
<() is between () and () :: operators>

you mean an answer. Then I guess you could do it like this with that one
if <<(mouse x) is between (56) and (-56) :: operators> and <(mouse y) is between (85) and (45) :: operators>> then
do something

Last edited by TheUltermateFollower (July 24, 2016 06:02:10)

Sheep_maker
Scratcher
1000+ posts

A between block (or blank to blank block)

say((1)to(10)::operators)
What would the sprite say?
Yanderan
Scratcher
100+ posts

A between block (or blank to blank block)

TheUltermateFollower wrote:

Ok, so I want a scratch block that looks like this. except blue or green. idk

(() to ())

It would be useful as you can make scripts like this

if <<(mouse x) = ((56) to (-56))> and <(mouse y) = ((85) to (45))>> then
do something

There is a way to do this by making a list and adding all the x or y places, but that is very time consuming.




Please submit your thoughts
Is this new block like the
(pick random () to ())
?
TheUltermateFollower
Scratcher
21 posts

A between block (or blank to blank block)

Yanderan wrote:

TheUltermateFollower wrote:

Ok, so I want a scratch block that looks like this. except blue or green. idk

(() to ())

It would be useful as you can make scripts like this

if <<(mouse x) = ((56) to (-56))> and <(mouse y) = ((85) to (45))>> then
do something

There is a way to do this by making a list and adding all the x or y places, but that is very time consuming.




Please submit your thoughts
Is this new block like the
(pick random () to ())
?


No, It senses if your sprite or mouse pointer is between one x (or y) point and another x (or y) point
TheUltermateFollower
Scratcher
21 posts

A between block (or blank to blank block)

Sheep_maker wrote:

say((1)to(10)::operators)
What would the sprite say?

what do you mean?
24691357
Scratcher
100+ posts

A between block (or blank to blank block)

TheUltermateFollower wrote:

24691357 wrote:

TheUltermateFollower wrote:

Ok, so I want a scratch block that looks like this. except green

(() to ())

It would be useful as you can make scripts like this

if <<(mouse x) = ((56) to (-56))> and <(mouse y) = ((85) to (45))>> then
do something


Please submit your thoughts
Round or hexagon blocks need to have a single value. Maybe something like this?
<() is between () and () :: operators>

you mean an answer. Then I guess you could do it like this with that one
if <<(mouse x) is between (56) and (-56) :: operators> and <(mouse y) is between (85) and (45) :: operators>> then
do something
Yes, it's used like this.
Scratcher1002
Scratcher
1000+ posts

A between block (or blank to blank block)

Sheep_maker wrote:

say((1)to(10)::operators)
What would the sprite say?
1 2 3 4 5 6 7 8 9 10
It's like a list.

Support if I haven't.
seanbobe
Scratcher
500+ posts

A between block (or blank to blank block)

<<(mouse x) > [-57]> and <(mouse x) < [57]>>

No support.
24691357
Scratcher
100+ posts

A between block (or blank to blank block)

Scratcher1002 wrote:

Sheep_maker wrote:

say((1)to(10)::operators)
What would the sprite say?
1 2 3 4 5 6 7 8 9 10
It's like a list.

Support if I haven't.
Then this
<[5] = ((1) to (10) :: operators)>
is not true as 5 is not 1 2 3 4 5 6 7 8 9 10. Unless Scratch handles it as list internally…
alexphan
Scratcher
1000+ posts

A between block (or blank to blank block)

<<(number) > [min]> and <(number) < [max]>>
No support as per seanbobe.
Sheep_maker
Scratcher
1000+ posts

A between block (or blank to blank block)

Scratcher1002 wrote:

Sheep_maker wrote:

say((1)to(10)::operators)
What would the sprite say?
1 2 3 4 5 6 7 8 9 10
It's like a list.

Support if I haven't.
So, assuming first class lists are invented implemented,
<((1)to(10)::operators) contains [5]>
EDIT: Used the wrong word

Last edited by Sheep_maker (July 26, 2016 02:08:27)

helloandgoodbye9
Scratcher
1000+ posts

A between block (or blank to blank block)

Support if first class lists are implanted, no support otherwise.
Jonathan50
Scratcher
1000+ posts

A between block (or blank to blank block)

What would this return? Does it keep returning with different values until the containing block returns true?

helloandgoodbye9 wrote:

Support if first class lists are implanted, no support otherwise.
xD

Last edited by Jonathan50 (July 26, 2016 04:41:28)

helloandgoodbye9
Scratcher
1000+ posts

A between block (or blank to blank block)

Jonathan50 wrote:

What would this return? Does it keep returning with different values until the containing block returns true?

helloandgoodbye9 wrote:

Support if first class lists are implanted, no support otherwise.
xD
lol bad spellcheck. Im too tired to edit it though.
TheUltermateFollower
Scratcher
21 posts

A between block (or blank to blank block)

helloandgoodbye9 wrote:

Support if first class lists are implanted, no support otherwise.
what do you mean?

Jonathan50 wrote:

What would this return? Does it keep returning with different values until the containing block returns true?

helloandgoodbye9 wrote:

Support if first class lists are implanted, no support otherwise.
xD
it was a thing?

Scratcher1002 wrote:

Sheep_maker wrote:

say((1)to(10)::operators)
What would the sprite say?
1 2 3 4 5 6 7 8 9 10
It's like a list.

Support if I haven't.
thx
RainaERusch
Scratcher
100+ posts

A between block (or blank to blank block)

Sorry if I sound incompetent but isn't this the same as:
(pick random (1) to (10))
Jonathan50
Scratcher
1000+ posts

A between block (or blank to blank block)

TheUltermateFollower wrote:

it was a thing?
What?

Powered by DjangoBB