Discuss Scratch

nice108
Scratcher
5 posts

Move variables and lists

when green flag clicked
(do it yourself)
repeat (I dunno wa going on)
set [ I dunno wa going on] to (pick random (123456789) to (10))

end
PrincessFlowerTV
Scratcher
1000+ posts

Move variables and lists

nice108 wrote:

when green flag clicked
(do it yourself)
repeat (I dunno wa going on)
set [ I dunno wa going on] to (pick random (123456789) to (10))

end
Please don't block-spam.

Got to be good looking cause he's so hard to see -The Beatles

(Thank you @just-there from The Profile Picture Shop for the banner ^^)





Nothing's down here, sorry to disappoint you.






JK. there may be something down there…









Maybe not, tho.











You're determined, aren't you?













Talar du Svenska? Om inte, det ar fin.





















Just stop it, will ya?

































Fine, you win.




Take a rice cake. *yeets you a rice cake*
Say “Thanks for that rice cake, Kewpie!” if you made it this far.
oggy333
Scratcher
4 posts

Move variables and lists

You can do it in scratch 1.4
Here is the instructions :)
apple20674
New to Scratch
1 post

Move variables and lists

Support
ItsMarbles
Scratcher
31 posts

Move variables and lists

theonlygusti wrote:

No support.

Scratch is meant to be a gateway into the world of programming languages, so why add a feature that is not present in any other language?

Scratchers should learn that variables are not actually a means of displaying information, they are a method of storing information, as they are in every other language.

For new scratchers who haven't learned how to create more advanced GUI, I don't see what is wrong with this. There are plenty of things existent in Scratch that aren't in any other programming language. Such as:

if on edge, bounce

say []

pen down

Also, displaying variables themselves isn't something other programming languages have. Technically, it can be done with more effort, but so can those examples. Support.

Last edited by ItsMarbles (Feb. 25, 2018 18:50:05)


I did a thing once. Also a wiki ‘contributor’.
Node.js is cool.
ZombieOw
Scratcher
5 posts

Move variables and lists

move [ variable 1] to x:[] y:[]

Last edited by ZombieOw (March 5, 2018 19:31:33)

awesomescratch2007
Scratcher
3 posts

Move variables and lists

theonlygusti wrote:

No support.

Scratch is meant to be a gateway into the world of programming languages, so why add a feature that is not present in any other language?

Scratchers should learn that variables are not actually a means of displaying information, they are a method of storing information, as they are in every other language.

You can display, change font, and style variables in other language, like JS, by using the .innerHTML property to set something in HTML to something else, like to a variable value. And if what you said is true, then why does Scratch even display variables in the first place? And you might say ‘just use a variable displayer, programming is meant to be hard’ and that is complete and utter lies. The whole purpose of programming is to make it easy and accessible for people to make their own creations. Why do you think they introduced custom blocks? To make it easier for people if they wanted to call code in different areas. Now get your head straight, theonlygusti. #rekt
chexbox
Scratcher
100+ posts

Move variables and lists

theonlygusti wrote:

No support.

Scratch is meant to be a gateway into the world of programming languages, so why add a feature that is not present in any other language?

Scratchers should learn that variables are not actually a means of displaying information, they are a method of storing information, as they are in every other language.
Scratch already has features not present in any other language, like the variable readout and the glide to blocks.
Edit: I agree, but if they have variable readouts they need a proper method of placing it.

Last edited by chexbox (March 30, 2018 20:15:55)


qwertyash1423
Scratcher
13 posts

Move variables and lists

carrot2pufferfish wrote:

A lot of times I need to move variables for various reasons. For example, sometimes they get in the way of sprites or need to move with a sprite.
I would like a block that looks like this:
move variable [ variable] to x:(0) y:(0)

I don't have any particular project that needs this, but it could help with coming up with other projects that uses it.
SUUUUUUUUUUUUPORT

Eknous
Scratcher
100+ posts

Move variables and lists

What about this block?
<variable[example v]is touching[mouse-pointer v]::variables

define SM64 TAS 16 Stars
get (8) more stars::sensing
get[1st key v]::sensing
get(7)more stars::sensing
catch [MIPS v]::sensing
clip into[30 star door v]::sensing
go to[Dire Dire Docks v] and get [1st v]star::sensing
get[2nd key v]::sensing
BLJ into[50 star door v]::sensing
BLJ into[Endless Stairs v]::sensing
beat last level::sensing
TheAdriCoolManDude
Scratcher
1000+ posts

Move variables and lists

No Support. Variables are to show and store values, and just putting them at the same position throughout the project is fine.


adsuri
Scratcher
1000+ posts

Move variables and lists

carrot2pufferfish wrote:

A lot of times I need to move variables for various reasons. For example, sometimes they get in the way of sprites or need to move with a sprite.
I would like a block that looks like this:
move variable [ variable] to x:(0) y:(0)

I don't have any particular project that needs this, but it could help with coming up with other projects that uses it.
I agree.

H                                                                                    He
Li Be B C N O F Ne
Na Mg Al Si P S Cl Ar
K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Kr
Rb Sr Y Zr Nb Mo Tc Ru Rh Pd Ag Cd In Sn Sb Te I Xe
Cs Ba Hf Ta W Re Os Ir Pt Au Hg Tl Pb Bi Po At Rn
Fr Ra Rf Db Sg Bh Hs Mt Ds Rg Cn Nh Fl Mc Lv Ts Og

La Ce Pr Nd Pm Sm Eu Gd Tb Dy Ho Er Tm Yb Lu
Ac Th Pa U Np Pu Am Cm Bk Cf Es Fm Md No Lr





CatGuyAnimates
Scratcher
100+ posts

Move variables and lists

I support too. In my game, I would like to be able to enlarge and move your score at the end of a game. As well as move the highscore if beaten. So, maybe also add:
change [variable 1 v] size by [#]% :: variables

(she/her) Mostly inactive nowadays. stand with ukraine.
convoluto-
Scratcher
100+ posts

Move variables and lists

TheAdriCoolManDude wrote:

No Support. Variables are to show and store values, and just putting them at the same position throughout the project is fine.
Still, these variables can get in the way of some sprites.

Expert memelord in the making.
So far, I've made: 3 memes! ( in photoshop )

You cannot trust any of my posts because I am dumb. Some may be right, though.
Loquat + kumquat protector: - Bob
TheAdriCoolManDude
Scratcher
1000+ posts

Move variables and lists

convoluto- wrote:

TheAdriCoolManDude wrote:

No Support. Variables are to show and store values, and just putting them at the same position throughout the project is fine.
Still, these variables can get in the way of some sprites.
Then find a place where it doesn't. It's not that hard.


convoluto-
Scratcher
100+ posts

Move variables and lists

TheAdriCoolManDude wrote:

convoluto- wrote:

TheAdriCoolManDude wrote:

No Support. Variables are to show and store values, and just putting them at the same position throughout the project is fine.
Still, these variables can get in the way of some sprites.
Then find a place where it doesn't. It's not that hard.
What if a sprite moves to that place?

Expert memelord in the making.
So far, I've made: 3 memes! ( in photoshop )

You cannot trust any of my posts because I am dumb. Some may be right, though.
Loquat + kumquat protector: - Bob
TheAdriCoolManDude
Scratcher
1000+ posts

Move variables and lists

convoluto- wrote:

TheAdriCoolManDude wrote:

convoluto- wrote:

TheAdriCoolManDude wrote:

No Support. Variables are to show and store values, and just putting them at the same position throughout the project is fine.
Still, these variables can get in the way of some sprites.
Then find a place where it doesn't. It's not that hard.
What if a sprite moves to that place?
I'm sure there is some space in the project not used.


Shaymin524
Scratcher
68 posts

Move variables and lists

TheAdriCoolManDude wrote:

convoluto- wrote:

TheAdriCoolManDude wrote:

convoluto- wrote:

TheAdriCoolManDude wrote:

No Support. Variables are to show and store values, and just putting them at the same position throughout the project is fine.
Still, these variables can get in the way of some sprites.
Then find a place where it doesn't. It's not that hard.
What if a sprite moves to that place?
I'm sure there is some space in the project not used.
Ok…
*turns pen on all sprites, gets thickness to the right amount and plays the project*
Ah! That's space isn't used!

Seriously though, projects such as maze games, etc. that require the user to choose where to move a sprite could use this. The coder doesn't know where the user will move.

—————————————————————————

GENERATION 1: When you first see this copy it to the start of your sig and change Generation by 1.

—————

Bring back remix trees, scroll blocks, picoboards and the discuss tab!

—————

Trans girl / Lesbian / 13 / Libra
SimplyKomplex
Scratcher
100+ posts

Move variables and lists

support.
here is my list of blocks to help with that:
move [variable v] to x:(10) y:(10) :: variables

set x of [variable v] to (10) :: variables

set y of [variable v] to (10) :: variables

change x of [variable v] to (10) :: variables

change y of [variable v] to (10) :: variables

SimplyKomplex
red_king_cyclops
Scratcher
500+ posts

Move variables and lists

Support, since variables are often displayed in Scratch projects, there is no workaround to this suggestion, and the variable part of data block section would get larger with this suggestion.

SimplyKomplex wrote:

support.
here is my list of blocks to help with that:
move [variable v] to x:(10) y:(10) :: variables

set x of [variable v] to (10) :: variables

set y of [variable v] to (10) :: variables

change x of [variable v] to (10) :: variables

change y of [variable v] to (10) :: variables
Here are some similar list blocks:

move [list v] to x:(10) y:(10) :: list

set x of [list v] to (10) :: list

set y of [list v] to (10) :: list

change x of [list v] to (10) :: list

change y of [list v] to (10) :: list

2+2=4
2*2=4
2^2=4
2^^2=4
2^^^2=4
2^^^^2=4

I see a pattern.

Powered by DjangoBB