Discuss Scratch

lgrov44
Scratcher
500+ posts

Go to random x and y blocks.

Just because of the workaround/s (see below), no support.
set x to (pick random (-240) to (240))
Exceptions to workaround:
1. When you want to change y. Change “x” to “y” and change the values to “-180” to “180”.

The rest have blocks that does it alrighty.

lgrov44, an Australian Scratcher whose most famous for his follows, followed by his activity, especially on Discussion Forums, and his follower count. Is also a remix chainer and school student. Identifies as bisexual.

My top 3 favourite people:
1. @Higgies (deleted) - First Follower, Thank you so much! (Wish you could see this…)
2. @Dubstepv1 (Banned/Moved) - Remix Chainer
3. @GIitchInTheMatrix (Moved to @GlitchedThrough) - Many small things.
Still looking for one of my first followers who are still active.
DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

BUMP
Topic gets sent to the shadow realm*
oops.


I shall




















Workaround chart:

DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

bump.

This is on the 2nd page, idk

I shall




















Workaround chart:

BananaSlug876
Scratcher
27 posts

Go to random x and y blocks.

ahem



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

STOP POSTING ABOUT AMONG US I'M TIRED OF SEEING IT! MY FOLLOWERS ON SCRATCH SEND ME MEMES, ON THE FORUMS IT'S FLIPPING MEMES, I WAS IN A STUDIO, RIGHT? AND AAAAALLL OF THE PROJECTS ARE JUST AMONG US STUFF. I-I SHOWED THE SCRATCH CAT TO MY FRIEND I-I SHOWED HIM THE CAT AND I DELETED THE HEAD ARMS AND TAIL AND I SAID, " HEY DUDE, WHEN THE IMPOSTER IS SUS AHAHA DING DING DING DING DING DING DING, DING DING DING! I FREAKING LOOKED AT A TRASH CAN AND I WENT, THAT'S A BIT SUSSY! I LOOK AT MY THUMB I THINK OF THE ASTRONAUT'S HELMET I GO THUMB? MORE LIKE THUMB-SUS! AAAAAAAAAAA
DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

BananaSlug876 wrote:

ahem



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

DangerPuppy10 wrote:

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.

I shall




















Workaround chart:

-stxllxr
New to Scratch
100+ posts

Go to random x and y blocks.

DangerPuppy10 wrote:

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.
Thou shalt use workaround!
(I'm using your chart against you. The workaround is as simple as the block, if not simpler, and scratch is an educational site, not one to hand everything to you. I don't see how figuring out the workaround is much harder than learning how the pick random block works, and i see plent of brand new scratchers know how to use the pick random block.

Edit: also you havn't provided a single time where this would be used, i sure havn't needed to go to a random specific y or x axis but i have needed to go to a random position.)

Last edited by -stxllxr (April 1, 2024 18:20:08)

DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

-stxllxr wrote:

DangerPuppy10 wrote:

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.

and scratch is an educational site, not one to hand everything to you.
go to [random position v]
you can do
go to x: (pick random (240) to (-240)) y: (pick random (240) to (-240))

forever

end

you can do
repeat until <[1] = [-1]>
...
end

go to x: (?) y: (?)

you can do

glide (0) secs to x: (?) y: (?)


go to [mouse-pointer v]

you can do

go to x: (mouse x) y: (mouse y)

Clearly, it does.

I shall




















Workaround chart:

medians
Scratcher
1000+ posts

Go to random x and y blocks.

-stxllxr wrote:

Edit: also you havn't provided a single time where this would be used, i sure havn't needed to go to a random specific y or x axis but i have needed to go to a random position.)
Someone could be making a game where the player starts at the left, and the obstacles have a random y (kinda like flappy bird), or they start at a random x and fall down or have to go along a line or sth.

:D: 2.0 is 11 years old https://scratch.mit.edu/projects/1018259409/
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
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
;
DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

medians wrote:

-stxllxr wrote:

Edit: also you havn't provided a single time where this would be used, i sure havn't needed to go to a random specific y or x axis but i have needed to go to a random position.)
Someone could be making a game where the player starts at the left, and the obstacles have a random y (kinda like flappy bird), or they start at a random x and fall down or have to go along a line or sth.
I made a game with rain and snow. And it had to spawn at a random x, it would be easier if I had this block.

I shall




















Workaround chart:

DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

ba-bump

I shall




















Workaround chart:

Scratchedbyyou
Scratcher
100+ 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)
Here's an improvement (More blocks required though.)
set [oldx v] to (x position)
go to [random position v]
set x to (oldx)

set [oldy v] to (y position)
go to [random position v]
set y to (oldy)
Warning: Weird results when used with pen.

Last edited by Scratchedbyyou (April 2, 2024 17:23:36)


My profile here!
My alternate account here!
My forums account here!
If you want to comment about one or more posts I made, I recommend posting the comment on my forums account.
I make animations and games. I also do a little posting on the forums. Scratch is a great place!
when green flag clicked
set voice to [tenor v]::pen
say [I do F4F]::custom

define say (words)
say (words)
speak (words)::pen
say []
GlompyOmega
Scratcher
20 posts

Go to random x and y blocks.

medians wrote:

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]

That doesnt exist…

when green flag clicked
set screen size to (12500) (pixels v) * (12500) (pixels v)
define (Screen Size )
fetch screen size
broadcast [script v]

when I receive [script v]
point in direction ((my variable) v)
change (my variable v) by (pick random (0) to (360))
move ((Screen Size X) / (10)) steps
wait (1) sec
-stxllxr
New to Scratch
100+ posts

Go to random x and y blocks.

DangerPuppy10 wrote:

block snip
Those already exist, and they're easier to understand as not every new scratcher will understand the repeat until block.

Last edited by -stxllxr (April 6, 2024 15:21:47)

DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

-stxllxr wrote:

DangerPuppy10 wrote:

block snip
Those already exist, and they're easier to understand as not every new scratcher will understand the repeat until block.
I understand it exists, but again. One block is easier than 2. It may not seem like much, but it would make things a bit faster for newer scratchers, or people who haven't needed to use it much.

I shall




















Workaround chart:

WallydogChoppychop
Scratcher
500+ posts

Go to random x and y blocks.

Support. Scratch is designed for beginners, it would help a lot for them.

Kumquats are tasty
I started scratch in 2.0
Is that a rare thing?
SOME ONE TELL ME
(Removed by moderator - Please don't show disturbing images of kumquats)

I'm asleep like all the time…
DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

|
V

I shall




















Workaround chart:

ajskateboarder
Scratcher
1000+ posts

Go to random x and y blocks.

WallydogChoppychop wrote:

Support. Scratch is designed for beginners, it would help a lot for them.
This argument is kind of a double-edged sword, as having Scratchers use blocks that hide away simple implementations doesn't help with learning
DangerPuppy10
Scratcher
500+ posts

Go to random x and y blocks.

ba-bonk

I shall




















Workaround chart:

Powered by DjangoBB