Discuss Scratch

Cream_E_Cookie
Scratcher
1000+ posts

Do as variable [ v] block

do as variable [ v] block :: variables cstart
end
This block simply does the action inside the variable as a variable.
Like if you put move 10 steps, the variable will move ten steps.
I like this idea:

Sonickyle wrote:

Support. Unsupported blocks could turn red if they are dragged in.
In fact, this would end all variable motion suggestions.
Also, any of the no-supporters should creat this to prove it.

Last edited by Cream_E_Cookie (Oct. 15, 2015 02:33:49)

gdpr533f604550b2f20900645890
Scratcher
1000+ posts

Do as variable [ v] block

do as variable [ v] block :: variables cstart
switch costume to [ v]
end
What will happen?

EDIT: Maybe the variable's costumes could be the three types of viewers.

Last edited by gdpr533f604550b2f20900645890 (Aug. 5, 2015 01:37:11)

Cream_E_Cookie
Scratcher
1000+ posts

Do as variable [ v] block

Chibi-Matoran wrote:

do as variable [ v] block :: variables cstart
switch costume to [ v]
end
What will happen?

EDIT: Maybe the variable's costumes could be the three types of viewers.
Yeah, and for the drop downs it depends on where you put the block.
Also, is that support

Last edited by Cream_E_Cookie (Aug. 5, 2015 01:40:42)

Zro716
Scratcher
1000+ posts

Do as variable [ v] block

oh I thought this was some kind of lambda suggestion, nevermind that.

what happens if you do this?
make variable [var v] do :: cstart variables
create clone of [myself v] // does it clone the variable or clone the sprite?
ask [] and wait // does the ask pop-up appear from the variable, sprite, or how the stage does it?
end
I mean, if variables could become objects, this would make sense, but I don't see why a C block should manipulate a variable based on the blocks inside it, whereas it would make more sense to have a complete set of what variables can legally do in Scratch (move, show/hide, change watcher type, etc).
Cream_E_Cookie
Scratcher
1000+ posts

Do as variable [ v] block

Zro716 wrote:

oh I thought this was some kind of lambda suggestion, nevermind that.

what happens if you do this?
make variable [var v] do :: cstart variables
create clone of [myself v] // does it clone the variable or clone the sprite?
ask [] and wait // does the ask pop-up appear from the variable, sprite, or how the stage does it?
end
I mean, if variables could become objects, this would make sense, but I don't see why a C block should manipulate a variable based on the blocks inside it, whereas it would make more sense to have a complete set of what variables can legally do in Scratch (move, show/hide, change watcher type, etc).
Cloning: myself means myself. So the variable. ALthough i see very few cases where people need to do that.
Ask: Stage does it.
VoltageGames
Scratcher
1000+ posts

Do as variable [ v] block

set [steps v] to [10 ]
move (steps) steps
????
This suggestion confuses me.
IronBit_Studios
Scratcher
1000+ posts

Do as variable [ v] block

VoltageGames wrote:

set [steps v] to [10 ]
move (steps) steps
????
This suggestion confuses me.
Cream_E_Cookie
Scratcher
1000+ posts

Do as variable [ v] block

VoltageGames wrote:

set [steps v] to [10 ]
move (steps) steps
????
This suggestion confuses me.
How is it confusing? It simply means that the variable is basically acting like a sprite.
VoltageGames
Scratcher
1000+ posts

Do as variable [ v] block

Cream_E_Cookie wrote:

VoltageGames wrote:

set [steps v] to [10 ]
move (steps) steps
????
This suggestion confuses me.
How is it confusing? It simply means that the variable is basically acting like a sprite.
HOW CAN A VARIABLE BE A SPRI–
unless you mean the variable counter that displays the value on the screen?
In which case does that mean I can
do as variable [e v] block :: variables cstart
turn ccw (3) degrees
end
but then how would the display do
do as variable [e v] block :: cstart variables
switch costume to [ v] // useless
<touching color [#ff0088] ?> // also useless
pen down // useless
play sound [ v] // where would it get the sound?
end
that would be an extremely limited block, probably limited to like the motion blocks.

Last edited by VoltageGames (Aug. 5, 2015 04:22:05)

Cream_E_Cookie
Scratcher
1000+ posts

Do as variable [ v] block

VoltageGames wrote:

Cream_E_Cookie wrote:

VoltageGames wrote:

set [steps v] to [10 ]
move (steps) steps
????
This suggestion confuses me.
How is it confusing? It simply means that the variable is basically acting like a sprite.
HOW CAN A VARIABLE BE A SPRI–
unless you mean the variable counter that displays the value on the screen?
In which case does that mean I can
do as variable [e v] block :: variables cstart
turn ccw (3) degrees
end
but then how would the display do
do as variable [e v] block :: cstart variables
switch costume to [ v] // useless
<touching color [#ff0088] ?> // also useless
pen down // useless
play sound [ v] // where would it get the sound?
end
that would be an extremely limited block, probably limited to like the motion blocks.
Sound: stage
Switch costume. Read the first reply
Also, yeah some things are useless, but then if it is useless, why would you put it there?
And yeah, i mean the variable counter that displays on the screen.

Last edited by Cream_E_Cookie (Aug. 5, 2015 04:39:22)

Blank1234
Scratcher
500+ posts

Do as variable [ v] block

semi-support
Cream_E_Cookie
Scratcher
1000+ posts

Do as variable [ v] block

Blank1234 wrote:

semi-support
why?
iamunknown2
Scratcher
1000+ posts

Do as variable [ v] block

Variable displays are hardcoded into Scratch. To change that would require a ton of work - it would be like redefining the plus sign in a Python interpreter.

If you want to make a variable that acts like a sprite, DIY.
Im_4nthony
Scratcher
100+ posts

Do as variable [ v] block

Support
stickfiregames
Scratcher
1000+ posts

Do as variable [ v] block

No support because most blocks wouldn't work for variables.
Support for some blocks to change variable displays though:
move [var v] to x: (0) y: (0) :: variables
set [var v] style to [small v] :: variables
set [var v] slider [min v] to (0) :: variables
move [list v] to x: (0) y: (0) :: list
set [list v] size to x: (100) y: (100) :: list
Sonickyle
Scratcher
1000+ posts

Do as variable [ v] block

Support. Unsupported blocks could turn red if they are dragged in.
Blank1234
Scratcher
500+ posts

Do as variable [ v] block

lol wat if someone did:
do as variable [ v] block :: variables cstart
do as variable [ v] block :: variables cstart
do as variable [ v] block :: variables cstart
end
end
end
then what would happen?

semi-support
Cream_E_Cookie
Scratcher
1000+ posts

Do as variable [ v] block

Blank1234 wrote:

lol wat if someone did:
do as variable [ v] block :: variables cstart
do as variable [ v] block :: variables cstart
do as variable [ v] block :: variables cstart
end
end
end
then what would happen?

semi-support
REad Sonicklyes post.
monstermash3
Scratcher
1000+ posts

Do as variable [ v] block

Sonickyle wrote:

Support. Unsupported blocks could turn red if they are dragged in.
Support for this.
Cute_Boot
Scratcher
62 posts

Do as variable [ v] block


do as variable block :: variables cstart
end

Surpport!

Powered by DjangoBB