Discuss Scratch

DangerPuppy10
Scratcher
1000+ posts

New go to: blocks

This should be new drop-downs for the
go to [ v]
block.
It would look like this:
go to [random x v]
go to [random y v]
go to [mouse x v]
go to [mouse y v]


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 (Sept. 5, 2024 20:49:24)

qwertycodechamp90411
Scratcher
100+ posts

New go to: blocks

Why though?
You can just go to x: (random (-240)(240)) y: (random(-180)(180))
DangerPuppy10
Scratcher
1000+ posts

New go to: 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.)
medians
Scratcher
1000+ posts

New go to: 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)
Malicondi
Scratcher
1000+ posts

New go to: blocks

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


go to [random position v]
set x to (... ::grey)
medians
Scratcher
1000+ posts

New go to: 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.
Malicondi
Scratcher
1000+ posts

New go to: 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.
medians
Scratcher
1000+ posts

New go to: 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)

Malicondi
Scratcher
1000+ posts

New go to: 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:
Aaliyah_Newlands
Scratcher
500+ posts

New go to: 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)
DangerPuppy10
Scratcher
1000+ posts

New go to: 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.
-stxllxr
New Scratcher
100+ posts

New go to: 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

New go to: 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)

Blue_Moon2607
Scratcher
59 posts

New go to: 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)

-stxllxr
New Scratcher
100+ posts

New go to: 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
1000+ posts

New go to: blocks

With my powerful ability to type! You shall RISE to the FIRST PAGE!!!!
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

New go to: 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.
medians
Scratcher
1000+ posts

New go to: 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])
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

New go to: 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.
medians
Scratcher
1000+ posts

New go to: 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)

Powered by DjangoBB