Discuss Scratch

1550307
Scratcher
35 posts

Helpful Workarounds for Frequently Suggested Blocks!

You should make a block like:


when green flag clicked
if <message1 received>

end



Thanks for reading!

I am so cool

I am always cool

and i always will be cool

PLEASE HELP ME BE COOLER!!!! URGENT this is a national E-M-E-R-G-E-N-C-Y
coding-turkey
Scratcher
5 posts

Helpful Workarounds for Frequently Suggested Blocks!

I wish they could add a pen variable called:
(pen down?)

Last edited by coding-turkey (Oct. 31, 2020 19:52:13)

SeuAmigo35
Scratcher
500+ posts

Helpful Workarounds for Frequently Suggested Blocks!

coding-turkey wrote:

I wish they could add a pen variable called:
(pen down?)
why don't you suggest?

I play Roblox and that's all.
I'm fun and random.
THE FIGHT
alt_GC
Scratcher
1 post

Helpful Workarounds for Frequently Suggested Blocks!

Got lots of workarounds in my custom blox shop

<[list v] contains (list :: list)?>

Last edited by alt_GC (Nov. 5, 2020 08:07:48)

griefercube
Scratcher
500+ posts

Helpful Workarounds for Frequently Suggested Blocks!

Do you mean my custom block shop?


sometimes, you just have to change a way of thinking to solve a problem. -griefercube
|other projectshow I made the banneranimated thumbnails?i’m on wiki!Cubey Mines|

Last edited by griefercube (32th Undecimber, XXXX)


https://turbowarp.org/563693837/editor (something i did a while back don’t worry it’s for the banner)

list of working bbcodes:

[color=]
[scratchblocks]
[url=]
[img]
[center]
[code]
[code=]
[list]
[quote]
[b]
[i]
[u]
[s]
[big]
[small]
[p]
[wiki]
[google]
Hearst10
Scratcher
100+ posts

Helpful Workarounds for Frequently Suggested Blocks!

Ihatr wrote:

Nice

Also, here's a project containing all these workarounds, for easy backpacking and using.

edited

thanks!

Moving from Scratch? Don't learn C or Java, try Snap!
enragedscracher1234
Scratcher
7 posts

Helpful Workarounds for Frequently Suggested Blocks!

Help. I need this.
loudness in project :: sensing reporter
fdreerf
Scratcher
1000+ posts

Helpful Workarounds for Frequently Suggested Blocks!

Response to post #2701 in TOLORS

Dear SSB20,
See post #2700 in TOLORS.

From fdreerf

Hyped for MS-DOS 11.0
Super_Scratch_Bros20
Scratcher
1000+ posts

Helpful Workarounds for Frequently Suggested Blocks!

Response to post #2700 in TOLORS

Dear fdreerf,
See post #2701 in TOLORS

From SSB20

Last edited by Super_Scratch_Bros20 (Nov. 10, 2020 17:48:03)



fdreerf
Scratcher
1000+ posts

Helpful Workarounds for Frequently Suggested Blocks!

Super_Scratch_Bros20 wrote:

Response to post #2700 in TOLORS

Dear fdreerf,
See post #2701 in TOLORS

From SSB20
Dear SSB20
Please read post #2700.
It says that the workaround doesn't work because that's not how z-axis works.

From fdreerf

Hyped for MS-DOS 11.0
Super_Scratch_Bros20
Scratcher
1000+ posts

Helpful Workarounds for Frequently Suggested Blocks!

fdreerf wrote:

Super_Scratch_Bros20 wrote:

Response to post #2700 in TOLORS

Dear fdreerf,
See post #2701 in TOLORS

From SSB20
Dear SSB20
Please read post #2700.
It says that the workaround doesn't work because that's not how z-axis works.

From fdreerf
Dear fdreerf
Could you provide the workaround if you are interested? It could influence this topic greatly. From my understanding, it takes a long amount of code to make everything in a project 3D, but it could be worth it for the topic.

From SSB20

Last edited by Super_Scratch_Bros20 (Nov. 10, 2020 17:58:21)



spocite
Scratcher
500+ posts

Helpful Workarounds for Frequently Suggested Blocks!

Thanks! This is really useful!

if you read this, thanks!
-spocite / posty / alien / the one who is going to take over the world someday (:<

why are all my posts in the suggestions forum

spocite wrote:

the real bruh moment was the friends we made along the way














a normal user can’t read this far, but you can! here's a free cake! tell me you got it on my profile!
SeuAmigo35
Scratcher
500+ posts

Helpful Workarounds for Frequently Suggested Blocks!

Super_Scratch_Bros20 wrote:

fdreerf wrote:

Super_Scratch_Bros20 wrote:

Response to post #2700 in TOLORS

Dear fdreerf,
See post #2701 in TOLORS

From SSB20
Dear SSB20
Please read post #2700.
It says that the workaround doesn't work because that's not how z-axis works.

From fdreerf
Dear fdreerf
Could you provide the workaround if you are interested? It could influence this topic greatly. From my understanding, it takes a long amount of code to make everything in a project 3D, but it could be worth it for the topic.

From SSB20
wait a minute…

I play Roblox and that's all.
I'm fun and random.
THE FIGHT
jacob_benz17
Scratcher
11 posts

Helpful Workarounds for Frequently Suggested Blocks!

i need a lWait until this is broadcastedl
p-p-p-p-p-p-p-p-p-p-
Scratcher
1000+ posts

Helpful Workarounds for Frequently Suggested Blocks!

shradibop wrote:

Sensing
_______________________________________________________________________________________________

am i a clone? :: boolean :: sensing
can be made with this script:
when green flag clicked
set [am i a clone? v] to [false]

when i start as a clone
set [am i a clone? v] to [true]

when green flag clicked
forever
if <(am i a clone?) = [true]> then
do something :: grey
This doesn't work, since the sprite will also think that they are a clone. I see (Clone ID) suggested frequently, and I've done some testing so here it is:

(Clone ID) :: control
This is a tricky one, but it can be done with this:

When gf clicked
Set[clone ID v] to [1]
...
create a clone of myself

define create a clone of myself
create a clone of [myself v]
wait [.1] secs
change [clone ID v] by [1]

When I start as a clone
Function clone (clone ID)

define Function clone (input)
clone stuff here :: grey
so, when you need clone ID, the (input) gives the ID, in the number of the clone created. You need that last custom block, but the first one is optional.

New!
SeuAmigo35
Scratcher
500+ posts

Helpful Workarounds for Frequently Suggested Blocks!

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

shradibop wrote:

Sensing
_______________________________________________________________________________________________

am i a clone? :: boolean :: sensing
can be made with this script:
when green flag clicked
set [am i a clone? v] to [false]

when i start as a clone
set [am i a clone? v] to [true]

when green flag clicked
forever
if <(am i a clone?) = [true]> then
do something :: grey
This doesn't work, since the sprite will also think that they are a clone.
the variable must be set to this spirite only

I play Roblox and that's all.
I'm fun and random.
THE FIGHT
Hearst10
Scratcher
100+ posts

Helpful Workarounds for Frequently Suggested Blocks!

easier workaround for
when <> :: events
is shown below:
when [timer v] > ((timer) - <. . .>)

Moving from Scratch? Don't learn C or Java, try Snap!
lionheart921
Scratcher
100+ posts

Helpful Workarounds for Frequently Suggested Blocks!

shradibop wrote:

Motion

_______________________________________________________________________________________________

point towards x:() y:() :: motion
This can be done with two methods.
Method 1:
Create a sprite and move it to where you want it. Say for example, you have a sprite X and move it to x:0 y:0, you could do this:
(for sprite X)
when green flag clicked
go to x:(0) y:(0)
(for the other sprite)
when green flag clicked
forever
point towards [X v]
end
Method 2:
Or you could do this complicated code.
set [deltax v] to ((WantedX) - (x position))
set [deltay v] to ((WantedY) - (y position))
if <not <(deltay) = [0]>> then

if <(deltay) > (0)> then
point in direction ([atan v] of ((deltax)/(deltay))
else
point in direction ([atan v] of (((deltax)/(deltay)) + (180)))
end
else
if ((deltax) > (0)) then
point in direction (90)
else
point in direction (-90)

end
_______________________________________________________________________________________________

bounce :: motion
can be made with this script:
point in direction ((direction) - (180)
sprites for point towards x) y) are s l o w and bounce is more complicated

Welcome to my account!
I love scratchblocks and the color blue.
operators stack block because operators doesn't have one::operators

comment [shift+down to see the rest of my signature]::grey
highlight this first!
describing colors::grey hat
black::#000
navy::#008
blue::#00f
green::#070
teal::#077
azure::#07f
lime::#0f0
mint::#0f7
cyan::#0ff
maroon::#700
purple::#707
violet::#70f
olive::#770
gray::#777
lilac::#77f
chartreuse::#7f0
aquamarine::#7f7
turquoise::#7ff
red::#f00
pink::#f07
fuchsia::#f0f
orange::#f70
peach::#f77
orchid::#f7f
yellow::#ff0
beige::#ff7
white::#fff
lionheart921
Scratcher
100+ posts

Helpful Workarounds for Frequently Suggested Blocks!

shradibop wrote:

Control
_______________________________________________________________________________________________

 while < . . . > { . . . } @loopArrow :: control 
can be done by doing this:
 repeat until < not < . . . > >
...
_______________________________________________________________________________________________

if <...> then {
...
} else if <...> {
...
} :: control

Can be done with:

if <...> then 
...
else
if <...> then
...
end
end
Don´t forget
if <> then {

} elif <> {

} else {

}::control

Welcome to my account!
I love scratchblocks and the color blue.
operators stack block because operators doesn't have one::operators

comment [shift+down to see the rest of my signature]::grey
highlight this first!
describing colors::grey hat
black::#000
navy::#008
blue::#00f
green::#070
teal::#077
azure::#07f
lime::#0f0
mint::#0f7
cyan::#0ff
maroon::#700
purple::#707
violet::#70f
olive::#770
gray::#777
lilac::#77f
chartreuse::#7f0
aquamarine::#7f7
turquoise::#7ff
red::#f00
pink::#f07
fuchsia::#f0f
orange::#f70
peach::#f77
orchid::#f7f
yellow::#ff0
beige::#ff7
white::#fff
lionheart921
Scratcher
100+ posts

Helpful Workarounds for Frequently Suggested Blocks!

enragedscracher1234 wrote:

Help. I need this.
loudness in project :: sensing reporter
Suggest it!

Welcome to my account!
I love scratchblocks and the color blue.
operators stack block because operators doesn't have one::operators

comment [shift+down to see the rest of my signature]::grey
highlight this first!
describing colors::grey hat
black::#000
navy::#008
blue::#00f
green::#070
teal::#077
azure::#07f
lime::#0f0
mint::#0f7
cyan::#0ff
maroon::#700
purple::#707
violet::#70f
olive::#770
gray::#777
lilac::#77f
chartreuse::#7f0
aquamarine::#7f7
turquoise::#7ff
red::#f00
pink::#f07
fuchsia::#f0f
orange::#f70
peach::#f77
orchid::#f7f
yellow::#ff0
beige::#ff7
white::#fff

Powered by DjangoBB