Discuss Scratch

DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

This will be a new dropdown for the
go to [ v]
block.
It will look like this:
go to [random x v]
go to [random y v]

And it makes the sprite go to a random x, or y.

Yes, I understand there is a workaround. I also understand the workaround is slightly easy. But the block makes it easier. Look at my chart in my signature (do not use it against me) this block will have a lot of usage. This also makes it a tiny tiny bit easier for newer scratchers who do not think of the workaround straight away.

Last edited by DangerPuppy10 (April 1, 2024 16:57:01)


I shall




















Workaround chart:

qwertycodechamp90411
Scratcher
100+ posts

Go to random x and y blocks.

Why though?
You can just go to x: (random (-240)(240)) y: (random(-180)(180))

Useful Links: Text Generator ——— Encoders/Decoders (Normal, Case Sensitive) ——— New Math Blocks ——— Comment what next on my profile!
Wait, we’re at 900 million projects? So close to 1 billion projects uploaded to the server!

<((x) ^ ((1) / (y))::operators) = ((y) √ (x)::operators)> // is false if x < 0???
Hi! I'm qwertycodechamp90411. I'm most active on the suggestions forum and the help with scripts forum, because I like to help other people and improve scratch! I like to think I'm good at scratch, but there's a lot I don't know/understand (how on earth do scrolling platformers work lol). As a general rule of thumb, I should have the answer if it's math related, because I'm a very stereotypical nerd when it comes to math.
DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

qwertycodechamp90411 wrote:

Why though?
You can just go to x: (random (-240)(240)) y: (random(-180)(180))
There is a workaround for the
go to [random position v]
too. But, look at the workaround chart I have. (in signature.)

I shall




















Workaround chart:

medians
Scratcher
1000+ posts

Go to random x and y blocks.

qwertycodechamp90411 wrote:

Why though?
You can just go to x: (random (-240)(240)) y: (random(-180)(180))
There is already a random position option in the go to block.
It could be like this:
set x to (random v)

set y to (random v)

NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
Malicondi
Scratcher
1000+ posts

Go to random x and y blocks.

one block workaround.
go to [random position v]
set y to (... ::grey)


go to [random position v]
set x to (... ::grey)

post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.

coming soon :)


medians
Scratcher
1000+ posts

Go to random x and y blocks.

Malicondi wrote:

one block workaround.
go to [random position v]
set y to (... ::grey)


go to [random position v]
set x to (... ::grey)
1. You just gave a 2 block workaround..
2. You would have to remember what the previous x or y is.
3. Rare situation, but the pen could be down.

NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
Malicondi
Scratcher
1000+ posts

Go to random x and y blocks.

medians wrote:

1. You just gave a 2 block workaround..
2. You would have to remember what the previous x or y is.
3. Rare situation, but the pen could be down.
1. It only adds one block so I classify it as a on block workaround.
2. In 3.0, it saves the last x or y position as the block you can drag out, or you can use a custom block to save the value or use this:
set x to (pick random (-240) to (240))
and same for y, still only one extra block, and is also ridiculously simple.
3. use method 2.

post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.

coming soon :)


medians
Scratcher
1000+ posts

Go to random x and y blocks.

Malicondi wrote:

medians wrote:

1. You just gave a 2 block workaround..
2. You would have to remember what the previous x or y is.
3. Rare situation, but the pen could be down.
1. It only adds one block so I classify it as a on block workaround.
2. In 3.0, it saves the last x or y position as the block you can drag out, or you can use a custom block to save the value or use this:
set x to (pick random (-240) to (240))
and same for y, still only one extra block, and is also ridiculously simple.
3. use method 2.
1. That would be a 2 block workaround though because it involves 2 blocks.
2. That's also in 2.0.. and what if you changed the x/y pos? Edit: Do you mean last or current?
3. You didn't have that method though in the post I quoted, so yea..

Last edited by medians (March 29, 2024 23:17:40)


NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
Malicondi
Scratcher
1000+ posts

Go to random x and y blocks.

medians wrote:

1. That would be a 2 block workaround though because it involves 2 blocks.
2. That's also in 2.0.. and what if you changed the x/y pos? Edit: Do you mean last or current?
3. You didn't have that method though in the post I quoted, so yea..
1. I'm still gonna think of it as an one block workaround, as adding in the block will still require one block.
2. I meant current, but that isn't a problem with the other workaround
3. :shrug:

post #1000 post #100 i help in the forums post #1 post #500 0 second ninja
I recommend reading jvvg's essay about the scratch team before complaining, as it may change your opinion and provide insight on the topic.

coming soon :)


Aaliyah_Newlands
Scratcher
100+ posts

Go to random x and y blocks.

I think instead of that it would be better like this
[x (... v) y (...v)]
The drop down could have random on it
or it could be
[go to (random v)

<Works at The Aurora Shop!-Please follow me!>


DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

Aaliyah_Newlands wrote:

I think instead of that it would be better like this
[x (... v) y (...v)]
The drop down could have random on it
or it could be
[go to (random v)
I felt like it would be better for the
go to [ v]
block, because it also has the random position option, and “random x” and “random y” dropdown options would work with this block.

I shall




















Workaround chart:

-stxllxr
New to Scratch
100+ posts

Go to random x and y blocks.

DangerPuppy10 wrote:

I felt like it would be better for the
go to [ v]
block, because it also has the random position option, and “random x” and “random y” dropdown options would work with this block.
set x to (pick random (-240) to (240))

set y to (pick random (-180) to (180))
What more needs to be said?
medians
Scratcher
1000+ posts

Go to random x and y blocks.

-stxllxr wrote:

DangerPuppy10 wrote:

I felt like it would be better for the
go to [ v]
block, because it also has the random position option, and “random x” and “random y” dropdown options would work with this block.
set x to (pick random (-240) to (240))

set y to (pick random (-180) to (180))
What more needs to be said?
You can also do sth similar for random position, which exists. Also, blocks with simple workarounds still exist:
next costume

next backdrop

(() + ())

(() * ())

change x by ()

change y by ()

Last edited by medians (March 30, 2024 14:45:07)


NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
Blue_Moon2607
Scratcher
46 posts

Go to random x and y blocks.

DangerPuppy10 wrote:

This will be a new dropdown for the
go to [ v]
block.
It will look like this:
go to [random x v]
go to [random y v]

And it makes the sprite go to a random x, or y.

I bet this is a dupe, I really do. I've lost faith in my topics.
Or you can do this…

-stxllxr wrote:

set x to (pick random (-240) to (240))
set y to (pick random (-180) to (180))

Last edited by Blue_Moon2607 (March 30, 2024 18:08:39)


I am just a Scratcher who is a Roblox bacon, feel free to go to my profile!
I have a studio called Blue Moon's Bacon Studio and it has a creative curated project including mine, please follow my studio! I also have a Roblox group called “Blue Moon Bacon Hangout”, join today!

-stxllxr
New to Scratch
100+ posts

Go to random x and y blocks.

medians wrote:

You can also do sth similar for random position, which exists. Also, blocks with simple workarounds still exist:
The thing is, those are already added and won't be removed any time soon. I'm saying that since there's such a simple workaround for a new block, there is no need to add it. Also chart in OP's siggy
DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

With my powerful ability to type! You shall RISE to the FIRST PAGE!!!!

I shall




















Workaround chart:

p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

Go to random x and y blocks.

medians wrote:

qwertycodechamp90411 wrote:

Why though?
You can just go to x: (random (-240)(240)) y: (random(-180)(180))
There is already a random position option in the go to block.
It could be like this:
set x to (random v)

set y to (random v)
A textbox wouldn't work well with a dropdown.

New!
medians
Scratcher
1000+ posts

Go to random x and y blocks.

p-p-p-p-p-p-p-p-p-p- wrote:

medians wrote:

qwertycodechamp90411 wrote:

Why though?
You can just go to x: (random (-240)(240)) y: (random(-180)(180))
There is already a random position option in the go to block.
It could be like this:
set x to (random v)

set y to (random v)
A textbox wouldn't work well with a dropdown.
I am not sure if this is in 3.0, but 2.0 has this:
(item (random v) of [list v])
(item (last v) of [list v])

NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

Go to random x and y blocks.

medians wrote:

p-p-p-p-p-p-p-p-p-p- wrote:

medians wrote:

qwertycodechamp90411 wrote:

Why though?
You can just go to x: (random (-240)(240)) y: (random(-180)(180))
There is already a random position option in the go to block.
It could be like this:
set x to (random v)

set y to (random v)
A textbox wouldn't work well with a dropdown.
I am not sure if this is in 3.0, but 2.0 has this:
(item (random v) of [list v])
(item (last v) of [list v])
I know, but in order to access this you have to do:
(item (join [random] []) of [list v])
so it's more of a hidden easter egg than a feature.

New!
medians
Scratcher
1000+ posts

Go to random x and y blocks.

p-p-p-p-p-p-p-p-p-p- wrote:

medians wrote:

p-p-p-p-p-p-p-p-p-p- wrote:

medians wrote:

qwertycodechamp90411 wrote:

Why though?
You can just go to x: (random (-240)(240)) y: (random(-180)(180))
There is already a random position option in the go to block.
It could be like this:
set x to (random v)

set y to (random v)
A textbox wouldn't work well with a dropdown.
I am not sure if this is in 3.0, but 2.0 has this:
(item (random v) of [list v])
(item (last v) of [list v])
I know, but in order to access this you have to do:
(item (join [random] []) of [list v])
so it's more of a hidden easter egg than a feature.
But it is a feature, well at least it was in 2.0 LOL

Also, I remember this being implemented in the 3.0 beta, not sure if it's in final though.
Anyways, if that isn't the case, then this could be added:
set [x position v] to random ::motion
Or sth, I have no idea LOL, there could be a sprite x/sprite y thing or whatever like this:
set x to [random x v]

set x to [Sprite1 v]

Last edited by medians (March 31, 2024 00:53:49)


NEW: Medians bamboozled by 3.0 (version 3.0): https://scratch.mit.edu/projects/979822351/
hi875230163394: You're similar to valve in that you both hate a certain number…
Scratch 0.x, 1.x, 2.x, 3.x and LogoBlocks Archives
Bamboozlement: https://scratch.mit.edu/studios/33739789
Fun_Cupcake_i81: https://scratch.mit.edu/projects/850535211/
Years on internet: 15 (soon 16)
medians: Oh god not this utc - 12 thing again..
Fun_Cupcake_i81: What, were you expecting not to see the utc - 12 thing again? THE UTC - 12 THIGN ALWAYS RETURNS. ALWAYS.
medians: I knew it would happen. I was the one who started it last year.
Fun_Cupcake_i81: Well then if you didn't want it back maybe you need to time travel to last year and fix that

Oh wait if you could time travel I think we all know exactly when you would go-
user1: That picture is from 2.0. Now he’s at my house and is my pet.
user2: But this is medians we're talking about, so “from 2.0” can mean the same thing as “from five seconds ago”.

Detect Scratch version here
My other accounts: @selfexplanatory @modesties @chaircard @fireflyhero @dividendyield @colloids @radians @skeuamorphism @dihectogon @anglebisector @aau- @EditBlockColors @AdamantOrb @MoongeistBeam @festively @Ampharos_ @ straightforwardness
i trolled redcat LOL





if you see this
{what method did you use::control hat
answer on profile ::motion
} ::operators
;

Powered by DjangoBB