Discuss Scratch

MarioAndLuigi4567
Scratcher
9 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.
medians
Scratcher
1000+ posts

Move variables and lists

Bringing this topic up.
fenchthebuilder13
Scratcher
25 posts

Move variables and lists

i did made movement only using lists
Maltion
Scratcher
100+ posts

Move variables and lists

waiting for it to be added…

it's been 12 years.
da-ultimate-creater
Scratcher
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.

medians wrote:

dogfish517 wrote:

I created some block Ideas for the blocks

I think it should just resemble the motion blocks in name, like this:
set [var v] x to ()::variables

set [var v] x position to ()::variables //alternate name

move variable [var v] to x: () y: ()::variables
There would be change and y position blocks too

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)

Powered by DjangoBB