Discuss Scratch
- Discussion Forums
- » Suggestions
- » Move variables and lists
- MarioAndLuigi4567
-
9 posts
Move variables and lists
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.
- Maltion
-
100+ posts
Move variables and lists
waiting for it to be added…
it's been 12 years.
it's been 12 years.
- da-ultimate-creater
-
100+ posts
Move variables and lists
Support. It can be really useful and make it easy for beginners to make health meters and stuff like that.
Adding upon these blocks, we can probably add:
And another useful block would be:
I think it should just resemble the motion blocks in name, like this: I created some block Ideas for the blocksset [var v] x to ()::variablesThere would be change and y position blocks too
set [var v] x position to ()::variables //alternate name
move variable [var v] to x: () y: ()::variables
Adding upon these blocks, we can probably add:
glide variable [my variable v] to x: () y: () :: variables // you can shorten the block by using the word var instead of variable
glide variable [my variable v] to [sprite1 v] :: variables
move variable [my variable v] to [sprite1 v] :: variables
change [my variable v] x position by () :: variables // Of course there would be y position counterparts.
And another useful block would be:
set display of [my variable v] to [normal display v] :: variables // The options would be "normal display", "large display", and "slider".
Last edited by da-ultimate-creater (Aug. 25, 2025 20:58:21)
- Discussion Forums
- » Suggestions
-
» Move variables and lists