Discuss Scratch

DoggyJET
Scratcher
11 posts

Helpful Workarounds for Frequently Suggested Blocks!

For “previous costume” block you could do:
switch costume to ((costume #) - (1))

Last edited by DoggyJET (Dec. 12, 2020 21:27:39)

DoggyJET
Scratcher
11 posts

Helpful Workarounds for Frequently Suggested Blocks!

if <[Pen down] = [True]> then
put whatever blocks you want here
can be done by:

pen down
set [Pen down?] to [True]

And

pen up
set [Pen down?] to [False]

Last edited by DoggyJET (Dec. 12, 2020 21:50:10)

DoggyJET
Scratcher
11 posts

Helpful Workarounds for Frequently Suggested Blocks!

You could just do:

when I start as a clone
do something
SeuAmigo35
Scratcher
500+ posts

Helpful Workarounds for Frequently Suggested Blocks!

sathvikrias wrote:

216138 wrote:

SeuAmigo35 wrote:

sathvikrias wrote:

ViniBloxEr wrote:

SeuAmigo35 wrote:

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
WHO IS SPIRITE
sprite, a character
isn't it called spirite?
s p r i t e c r a n b e r r y isnt sprite a d r i n k -
1. it is called SPRITE not SPIRITE
2. sprite is also a drink but not in this case.
3. anyone have a workaround for
when gf clicked
? (just asking for fun)
ViniBloxEr would like this…

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

Helpful Workarounds for Frequently Suggested Blocks!

4cwefgtw9e587 wrote:

PikachuB2005_test wrote:

sathvikrias wrote:

3. anyone have a workaround for
when gf clicked
? (just asking for fun)
Well you could always do
when [timer v] > (0)

in scratch 3.0 you can just do when motion greater than -9999 turn camera off
oh I forgot

Moving from Scratch? Don't learn C or Java, try Snap!
4cwefgtw9e587
Scratcher
66 posts

Helpful Workarounds for Frequently Suggested Blocks!

iruxgame wrote:

shradibop wrote:

<key [enter v] pressed?>

can be created with this:
key (join [enter] []) pressed?
This can be used for other single character special keys, such as ; ‘ , \ as well as enter.
But it doesn’t work with the shift, control, tab, etc. keys.

is there a full list of those?




i can't find one so i'll make one myself


Caps Lock
Tab
Shift
Ctrl
Alt
Fn
i'm not sure about backspace
Insert
Home
Pgup
Pgdown
Delete
End
Num Lock
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12

Last edited by 4cwefgtw9e587 (Dec. 14, 2020 23:29:49)


i like scratch mods
ɴᴏᴡ ᴘʟᴀʏɪɴɢ: Never Gonna Give You Up (RickRoll) ◄◄⠀▐▐ ⠀►►⠀ ───⚪────────────── ⠀⠀ ⠀

2+2=4
2x2=4
2^2=4
YOU CANNOT ESCAPE 4
4cwefgtw9e587
Scratcher
66 posts

Helpful Workarounds for Frequently Suggested Blocks!

4cwefgtw9e587 wrote:

iruxgame wrote:

shradibop wrote:

<key [enter v] pressed?>

can be created with this:
key (join [enter] []) pressed?
This can be used for other single character special keys, such as ; ‘ , \ as well as enter.
But it doesn’t work with the shift, control, tab, etc. keys.

is there a full list of those?




i can't find one so i'll make one myself


Caps Lock
Tab
Shift
Ctrl
Alt
Fn
i'm not sure about backspace
Insert
Home
Pgup
Pgdown
Delete
End
Num Lock
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12


i wonder if emojis can be detected too

i like scratch mods
ɴᴏᴡ ᴘʟᴀʏɪɴɢ: Never Gonna Give You Up (RickRoll) ◄◄⠀▐▐ ⠀►►⠀ ───⚪────────────── ⠀⠀ ⠀

2+2=4
2x2=4
2^2=4
YOU CANNOT ESCAPE 4
novastone146
Scratcher
16 posts

Helpful Workarounds for Frequently Suggested Blocks!

scratch plz add this block

insert text X [...] Y [...] text [...]
Ihatr
Scratcher
1000+ posts

Helpful Workarounds for Frequently Suggested Blocks!

novastone146 wrote:

scratch plz add this block

insert text X [...] Y [...] text [...]

mtech22 wrote:

Please suggest things in the Suggestions forums,
https://scratch.mit.edu/discuss/1/


this is a link
DoggyJET
Scratcher
11 posts

Helpful Workarounds for Frequently Suggested Blocks!

SparkScratch_P wrote:

Here is a workout for this block:


stop saying [ hello]

Use of this block:

forever
if <touching [mouse pointer v] ?> then
say [hello]


else
stop saying [ hello]
end
end


Workout:


forever
if <touching [mouse pointer v] ?> then
say [hello] for (0.01) secs

end
end


An alternate way is:

when green flag clicked
forever
if <touching [ mouse-pointer] ?> then
say [hello]



else
think []
end
end
ViniBloxEr
Scratcher
64 posts

Helpful Workarounds for Frequently Suggested Blocks!

sathvikrias wrote:

216138 wrote:

SeuAmigo35 wrote:

sathvikrias wrote:

ViniBloxEr wrote:

SeuAmigo35 wrote:

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
WHO IS SPIRITE
sprite, a character
isn't it called spirite?
s p r i t e c r a n b e r r y isnt sprite a d r i n k -
1. it is called SPRITE not SPIRITE
2. sprite is also a drink but not in this case.
3. anyone have a workaround for
when gf clicked
? (just asking for fun)
S P R I T E

I'm @SeuAmigo35ING acaunt. wat wawawat? Your thenk i'm fAIK? Then yall shiuld gol intro arestING.
if <on arestING?:: sensing> then
Yall donu't knaw wOAHt tok dok:: looks
end
(:D :: sensing)//mis (neAw) kumkuat protectur! :D
ViniBloxEr
Scratcher
64 posts

Helpful Workarounds for Frequently Suggested Blocks!

4cwefgtw9e587 wrote:

4cwefgtw9e587 wrote:

iruxgame wrote:

shradibop wrote:

<key [enter v] pressed?>

can be created with this:
key (join [enter] []) pressed?
This can be used for other single character special keys, such as ; ‘ , \ as well as enter.
But it doesn’t work with the shift, control, tab, etc. keys.

is there a full list of those?




i can't find one so i'll make one myself


Caps Lock
Tab
Shift
Ctrl
Alt
Fn
i'm not sure about backspace
Insert
Home
Pgup
Pgdown
Delete
End
Num Lock
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12


i wonder if emojis can be detected too
EPICAL I'LL SUGGEST THAT

I'm @SeuAmigo35ING acaunt. wat wawawat? Your thenk i'm fAIK? Then yall shiuld gol intro arestING.
if <on arestING?:: sensing> then
Yall donu't knaw wOAHt tok dok:: looks
end
(:D :: sensing)//mis (neAw) kumkuat protectur! :D
4cwefgtw9e587
Scratcher
66 posts

Helpful Workarounds for Frequently Suggested Blocks!

ViniBloxEr wrote:

4cwefgtw9e587 wrote:

4cwefgtw9e587 wrote:

iruxgame wrote:

shradibop wrote:

<key [enter v] pressed?>

can be created with this:
key (join [enter] []) pressed?
This can be used for other single character special keys, such as ; ‘ , \ as well as enter.
But it doesn’t work with the shift, control, tab, etc. keys.

is there a full list of those?




i can't find one so i'll make one myself


Caps Lock
Tab
Shift
Ctrl
Alt
Fn
i'm not sure about backspace
Insert
Home
Pgup
Pgdown
Delete
End
Num Lock
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12


i wonder if emojis can be detected too
EPICAL I'LL SUGGEST THAT



i wont really know what the use will be lol

i like scratch mods
ɴᴏᴡ ᴘʟᴀʏɪɴɢ: Never Gonna Give You Up (RickRoll) ◄◄⠀▐▐ ⠀►►⠀ ───⚪────────────── ⠀⠀ ⠀

2+2=4
2x2=4
2^2=4
YOU CANNOT ESCAPE 4
stefie10
Scratcher
44 posts

Helpful Workarounds for Frequently Suggested Blocks!

i made a few and this(press see inside)
Just_ng
Scratcher
500+ posts

Helpful Workarounds for Frequently Suggested Blocks!

SparkScratch_P wrote:

Here is a workout for this block:


stop saying [ hello]

Use of this block:

forever
if <touching [mouse pointer v] ?> then
say [hello]


else
stop saying [ hello]
end
end


Workout:


forever
if <touching [mouse pointer v] ?> then
say [hello] for (0.01) secs

end
end

This can be done by just putting say() blank input and it will say nothing. i tested it


SeuAmigo35
Scratcher
500+ posts

Helpful Workarounds for Frequently Suggested Blocks!

4cwefgtw9e587 wrote:

ViniBloxEr wrote:

4cwefgtw9e587 wrote:

4cwefgtw9e587 wrote:

iruxgame wrote:

shradibop wrote:

<key [enter v] pressed?>

can be created with this:
key (join [enter] []) pressed?
This can be used for other single character special keys, such as ; ‘ , \ as well as enter.
But it doesn’t work with the shift, control, tab, etc. keys.

is there a full list of those?




i can't find one so i'll make one myself


Caps Lock
Tab
Shift
Ctrl
Alt
Fn
i'm not sure about backspace
Insert
Home
Pgup
Pgdown
Delete
End
Num Lock
Esc
F1
F2
F3
F4
F5
F6
F7
F8
F9
F10
F11
F12


i wonder if emojis can be detected too
EPICAL I'LL SUGGEST THAT



i wont really know what the use will be lol
nooooooooooooooo ViniBloxEr found the comment

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

Helpful Workarounds for Frequently Suggested Blocks!

Also, for Javascript programmers like me, to make localStorage variables, you can do this:
set [ v] to []
NOT a cloud variable.

Hi! I'm DREWNOLT!
I code in Scratch, Javascript, HTML, Bash, and more!
Find my projects here.
I'm on Replit and Github!
Stay safe and scratch on!

Maximouse
Scratcher
1000+ posts

Helpful Workarounds for Frequently Suggested Blocks!

DREWNOLT wrote:

Also, for Javascript programmers like me, to make localStorage variables, you can do this:
set [ v] to []
NOT a cloud variable.
This isn't a localStorage variable because it's reset when you reload the page.


This is Maximouse's signature. Learn more about signatures.
Aarnay3t
Scratcher
100+ posts

Helpful Workarounds for Frequently Suggested Blocks!

This is not a workaround but have you ever been through the awful time where you have to copy scripts to every single sprite?
Here is a tip:
Go to the hat block at the top of the script and right-click it
 when green flag clicked
After that press Ctrl+C to copy the script
Then, go to the sprite you need and press Ctrl+V to paste the script

Aarnay3t [#ffff00]::stack #ffbd00
I am @Aarnay3t, a Scratcher who is teaching his brother to code and has always had a keen interest in coding and programming. I own and am a founder of the AIC - Aarnay3t Institute of Coding. I am even learning HTML and Python!
You can see the rest of my signature by higlighting this text right here and then pressing ⇧ + ↓ (shift + down arrow)
print("Hello World!")
"Hello World!"
You can meet me here.
Hey? Like this discussion?
Then, click the button below and NEVER click the one that takes its place
Follow Discussion::reporter #00cccc
Aarnay3t
:)::boolean blocks // I'm an anti-kumquat. Fun fact: There is a fruit called the kumquat fruit!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
DoggyJET
Scratcher
11 posts

Helpful Workarounds for Frequently Suggested Blocks!

ViniBloxEr wrote:

sathvikrias wrote:

216138 wrote:

SeuAmigo35 wrote:

sathvikrias wrote:

ViniBloxEr wrote:

SeuAmigo35 wrote:

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
WHO IS SPIRITE
sprite, a character
isn't it called spirite?
s p r i t e c r a n b e r r y isnt sprite a d r i n k -
1. it is called SPRITE not SPIRITE
2. sprite is also a drink but not in this case.
3. anyone have a workaround for
when gf clicked
? (just asking for fun)
S P R I T E
Possible way for When green flag clicked workaround:

when green flag clicked
broadcast [Green Flag]
when I receive [Green Flag]
...

Powered by DjangoBB