Discuss Scratch

lovecodeabc
Scratcher
1000+ posts

The Workarounds to Frequently Suggested Blocks

Oh and
make () negative :: operators
Is
(join [-] [])
Or
((0) - ())
lovecodeabc
Scratcher
1000+ posts

The Workarounds to Frequently Suggested Blocks

Wyan100 wrote:

Are you planning on adding more? Either way I would like to suggest that you add a workaround for people who want

repeat until <[Broadcast v] Received>

end

And also I know the traditional method everyone talks about is to use variables like:

when green flag clicked
set [Variable v] to [False]

when I receive [Do Stuff v]
set [Variable v] to [True]

when this sprite clicked
repeat until <(Variable) = [True]>
Do Stuff
end

But many people complain about the amount of Variables it takes in large Projects. So I suggest instead that you add the following Method that uses List instead.

when green flag clicked
replace item (1 v) of [list v] with [False]
replace item (2 v) of [list v] with [False]
replace item (3 v) of [list v] with [False]

when I receive [Event 1 v]
replace item (1 v) of [list v] with [True]

when I receive [Event 2 v]
replace item (2 v) of [list v] with [True]

when I receive [Event 3 v]
replace item (3 v) of [list v] with [True]

when this sprite clicked
repeat until <(item (1 v) of [list v] :: list) = [True]>
Do Stuff
end
repeat until <(item (2 v) of [list v] :: list) = [True]>
Do Stuff
end
repeat until <(item (3 v) of [list v] :: list) = [True]>
Do Stuff
end

In this example it uses 1 list instead of 3 Variables, and for larger Projects this can be very helpful. So I think you should add it.

Sorry if I'm being annoying, I can report this message to be deleted if you'd like.

(How do you change the color of a block you are creating?)
Use :: category of block like
Hello :: sensing
I’m lovecodeabc :: motion
Scratch is cool :: control
SeuAmigo35
Scratcher
500+ posts

The Workarounds to Frequently Suggested Blocks

Hi_I_am_Alex wrote:

SeuAmigo35 wrote:

Hi_I_am_Alex wrote:

SeuAmigo35 wrote:

SeuAmigo35 wrote:

i'm trying to find a workaround for these blocks:
(distance to X:() Y:()::sensing)
<<>() secs ago?::operators>
I CAN'T FIND IT!!!!
Find what?
THE WORKAROUND
Here's the link to the workaround for “distance to x y”
ok thanks!
shradibop
Scratcher
100+ posts

The Workarounds to Frequently Suggested Blocks

I'm still not sure how to make my character face all directions. Here's a link. I want my character to move like the tiny blue square does in the video.
Vanilla2011
Scratcher
500+ posts

The Workarounds to Frequently Suggested Blocks

shradibop wrote:

I'm still not sure how to make my character face all directions. Here's a link. I want my character to move like the tiny blue square does in the video.
What do you mean?
shopora123
Scratcher
3 posts

The Workarounds to Frequently Suggested Blocks

geometric_ghast wrote:

shopora123 wrote:

bring the cat blocks backkkkk
i am a cat block, well, not anymore :(   
Use this: https://llk.github.io/scratch-gui/hotfix/totally-normal-2020/
thxxxx :3
shradibop
Scratcher
100+ posts

The Workarounds to Frequently Suggested Blocks

Vanilla2011 wrote:

shradibop wrote:

I'm still not sure how to make my character face all directions. Here's a link. I want my character to move like the tiny blue square does in the video.
What do you mean?
Try this. I want my character to move exactly like the blue square does without copying their script. You see how the blue square moves in every direction? I want my character to move like that.
sashynilasen
Scratcher
81 posts

The Workarounds to Frequently Suggested Blocks

shradibop wrote:

Wouldn't just using
(video [motion v] on [Stage v] :: pen)
work just fine?

Well… I need the motion so that it can be updated instantly, not with lag…
shradibop
Scratcher
100+ posts

The Workarounds to Frequently Suggested Blocks

sashynilasen wrote:

shradibop wrote:

Wouldn't just using
(video [motion v] on [Stage v] :: pen)
work just fine?

Well… I need the motion so that it can be updated instantly, not with lag…
I can't think of anything simpler than just constantly updating a variable. Maybe try updating it on a timer?
BearSlothCoding
Scratcher
1000+ posts

The Workarounds to Frequently Suggested Blocks

I am now closing this topic. I don't really understand Scratch code as much as I should, I don't know anything about these workarounds. Because of this, I've decided that I am not a good fit for running this. If anyone is interested in taking this over, please comment on my profile. That way there won't be multiple people trying to run this.
This was fun while it lasted, but I think it would be better for me to take over a sticky in QaS or something that I know more about.
Vanilla2011
Scratcher
500+ posts

The Workarounds to Frequently Suggested Blocks

BearSlothCoding wrote:

I am now closing this topic.
But it's not closed!
BearSlothCoding
Scratcher
1000+ posts

The Workarounds to Frequently Suggested Blocks

Vanilla2011 wrote:

BearSlothCoding wrote:

I am now closing this topic.
But it's not closed!
It was, it just got reopened so that way shradibop (the person taking it over) could copy and paste everything instead of spending three hours doing it by hand like I did.
SeuAmigo35
Scratcher
500+ posts

The Workarounds to Frequently Suggested Blocks

BearSlothCoding wrote:

I am now closing this topic. I don't really understand Scratch code as much as I should, I don't know anything about these workarounds. Because of this, I've decided that I am not a good fit for running this. If anyone is interested in taking this over, please comment on my profile. That way there won't be multiple people trying to run this.
This was fun while it lasted, but I think it would be better for me to take over a sticky in QaS or something that I know more about.
i'm one of the BEST coders ever in scratch, i find workarounds for a- LOT of blocks. what if I made a workarounds forum?
stooky
Scratcher
100+ posts

The Workarounds to Frequently Suggested Blocks

point in [random direction] :: motion
can easily be done by adding a sprite with this code:
when green flag clicked
forever
glide () secs to [random position] :: motion
end
Then, in the original sprite, you put this code:
when green flag clicked
forever
point towards (sprite) :: control
end

Last edited by stooky (Oct. 2, 2020 14:57:24)

BearSlothCoding
Scratcher
1000+ posts

The Workarounds to Frequently Suggested Blocks

Why is this getting posts again?!

SeuAmigo35 wrote:

BearSlothCoding wrote:

I am now closing this topic. I don't really understand Scratch code as much as I should, I don't know anything about these workarounds. Because of this, I've decided that I am not a good fit for running this. If anyone is interested in taking this over, please comment on my profile. That way there won't be multiple people trying to run this.
This was fun while it lasted, but I think it would be better for me to take over a sticky in QaS or something that I know more about.
i'm one of the BEST coders ever in scratch, i find workarounds for a- LOT of blocks. what if I made a workarounds forum?
I already explained how someone else is taking it over in the post above yours. Also, saying you're “one of the BEST coders ever in scratch” sounds really arrogant.
SeuAmigo35
Scratcher
500+ posts

The Workarounds to Frequently Suggested Blocks

BearSlothCoding wrote:

Why is this getting posts again?!

SeuAmigo35 wrote:

BearSlothCoding wrote:

I am now closing this topic. I don't really understand Scratch code as much as I should, I don't know anything about these workarounds. Because of this, I've decided that I am not a good fit for running this. If anyone is interested in taking this over, please comment on my profile. That way there won't be multiple people trying to run this.
This was fun while it lasted, but I think it would be better for me to take over a sticky in QaS or something that I know more about.
i'm one of the BEST coders ever in scratch, i find workarounds for a- LOT of blocks. what if I made a workarounds forum?
I already explained how someone else is taking it over in the post above yours. Also, saying you're “one of the BEST coders ever in scratch” sounds really arrogant.
remember when i said the problems of the “when stop sing” block?
uh. but i can do that latter. when the third topic closes, i will make the fourth. also congradulations shradibop.
stooky
Scratcher
100+ posts

The Workarounds to Frequently Suggested Blocks

BearSlothCoding wrote:

Why is this getting posts again?!

SeuAmigo35 wrote:

BearSlothCoding wrote:

I am now closing this topic. I don't really understand Scratch code as much as I should, I don't know anything about these workarounds. Because of this, I've decided that I am not a good fit for running this. If anyone is interested in taking this over, please comment on my profile. That way there won't be multiple people trying to run this.
This was fun while it lasted, but I think it would be better for me to take over a sticky in QaS or something that I know more about.
i'm one of the BEST coders ever in scratch, i find workarounds for a- LOT of blocks. what if I made a workarounds forum?
I already explained how someone else is taking it over in the post above yours. Also, saying you're “one of the BEST coders ever in scratch” sounds really arrogant.
First, many people still have ways to work around blocks that are not in scratch. They may be better than all of us at understanding scratch code.
Also, I think we can all agree that @griffpatch is one of the best coders ever in scratch.
shradibop
Scratcher
100+ posts

The Workarounds to Frequently Suggested Blocks

Alright, I'm reporting this to be closed again. Go here if you want the new one: https://scratch.mit.edu/discuss/topic/444061/?page=1#post-4467704

Last edited by shradibop (Oct. 2, 2020 16:09:49)

shradibop
Scratcher
100+ posts

The Workarounds to Frequently Suggested Blocks

stop [all v]

Last edited by shradibop (Oct. 2, 2020 16:10:04)

Powered by DjangoBB