Discuss Scratch
- Discussion Forums
- » Suggestions
- » <Is pen down?> block
- TheSmartGuy1234
- Scratcher
1000+ posts
<Is pen down?> block
Sometimes you want to know if the pen is down/up but variables are not a option
And, even if variables are a option, it's much simpler and easier to understand and it will save a lot of code and using variables can create bugs i.e. when you forget to put the
and you can just do
instead of
And, even if variables are a option, it's much simpler and easier to understand and it will save a lot of code and using variables can create bugs i.e. when you forget to put the
set [pen down? v] to [true/false]
and you can just do
if <pen down?> then
do whatever
end
instead of
if <(pen down?) = [true]> then
do whatever
end
Last edited by TheSmartGuy1234 (Sept. 7, 2021 23:23:23)
It's AF day in my timzone.
ST: celebrate AF day in your timezones
Me: I live in new zealand
ST: oh no nononono
you use
sudo sh -c 'echo "text" > file'
echo 'text' | sudo tee file 1> /dev/null
Scroll* for more!
what are @SIMIA1358 and @TPRATTAY doing!??!?!
(2023/11/04 YEAR-MM-DD)
https://scratch.mit.edu/discuss/topic/652044/?page=222#post-7453472
griffpatch appel is broken
Games snippet:
10. yFzZ3MgsySzJLMv8yBzIfMqcynzJ04zLbMi8yNzJvNjM2KzYPNgsybzJLMi8yOzYzMk8yHzY3MmMyhzKrNlcytzYnMpcy6Ncy3zJLNoMyCzI7NisyQzL7Mhc2QzYrMkcyUzI7MisyBzKjNicyfzLHMrMymzJnMocygzYk
- han614698
- Scratcher
1000+ posts
<Is pen down?> block
Hello! This topic is a duplicate of this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks! ]this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks!
Last edited by han614698 (Sept. 7, 2021 23:48:48)
<Scratch Wikian | Forum Helper | 6000+ Posts>
Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why
- Xolay
- Scratcher
1000+ posts
<Is pen down?> block
this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks! ]this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks!The link gives a about:blank. There's nothing on the url. Hello! This topic is a duplicate of
I'm a 8 year old boy
[0.0](ᵔ ᵕ ᵔ::stack)('_'::stack variables)(o,o::stack control)(d_b::stack operators)(²-²::stack motion)(1_1::stack looks)(°-°::stack sound)::stack #000000//these are my kumquat protectors
if <(username) = [add signature] > thenWHAT??? HOW ARE YOU SEEING THIS?
set [big brain v]to [True]
end
<<true(::grey) ::#00FF00>::operators>I love courtney from total dramarama
<<(::grey) false::#ff0000>::operators>
My goal:
5000 posts (::control) (::control) (::#000000) (::#000000) (::#000000) ::#00008B
Credits: Google
move (1) step::motion
hello, light mode user
hello, dark mode user
this hat is looking at u
() () ::custom hat
POV: you are a ST member about to report
See the POV of being a Scratch Team member.
atchscray isyay ayay igh-levelhay ock-basedblay isualvay ogrammingpray anguagelay andyay ebsiteway argetedtay imarilypray atyay ildrenchay 8–16 asyay anyay educationalyay ooltay orfay ogrammingpray.
PLZ buy me a Wedo 2.0
hellohellohellohello
I BELIEVE IN VS TOTAL DRAMARAMA SUPREMACY
you are not being valid offtopic there
hahaha superhero block go brrrr::#FFFFFF cap
made with uploads.scratch.mit.edu
- han614698
- Scratcher
1000+ posts
<Is pen down?> block
i forgot the url, but i know i had one… if forgot to paste it,this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks! ]this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks!The link gives a about:blank. There's nothing on the url. Hello! This topic is a duplicate of
<Scratch Wikian | Forum Helper | 6000+ Posts>
Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why
- TheSmartGuy1234
- Scratcher
1000+ posts
<Is pen down?> block
this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks! ]this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks!Hello! This topic is a duplicate of
That link dosen't work
It's AF day in my timzone.
ST: celebrate AF day in your timezones
Me: I live in new zealand
ST: oh no nononono
you use
sudo sh -c 'echo "text" > file'
echo 'text' | sudo tee file 1> /dev/null
Scroll* for more!
what are @SIMIA1358 and @TPRATTAY doing!??!?!
(2023/11/04 YEAR-MM-DD)
https://scratch.mit.edu/discuss/topic/652044/?page=222#post-7453472
griffpatch appel is broken
Games snippet:
10. yFzZ3MgsySzJLMv8yBzIfMqcynzJ04zLbMi8yNzJvNjM2KzYPNgsybzJLMi8yOzYzMk8yHzY3MmMyhzKrNlcytzYnMpcy6Ncy3zJLNoMyCzI7NisyQzL7Mhc2QzYrMkcyUzI7MisyBzKjNicyfzLHMrMymzJnMocygzYk
- han614698
- Scratcher
1000+ posts
<Is pen down?> block
I know. Read above.this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks! ]this one over here. That means that someone had the same suggestion as you! Don't worry though, as you can continue the discussion over there. In the future, I recommend you search for duplicates before posting. Thanks!Hello! This topic is a duplicate of
That link dosen't work
<Scratch Wikian | Forum Helper | 6000+ Posts>
Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why
- Reev0102
- Scratcher
1000+ posts
<Is pen down?> block
This topic is a duplicate, which means someone already created a similar topic before you did. This suggestion is currently being discussed here, so please go there to discuss it. For now, I'll ask a moderator to close this topic. In the future, please read these topics before making a suggestion:
Thanks!
Reev
- The Official List of Rejected Suggestions
- Constructive Recommendations On How to Respond to and Make Suggestions!
- GUIDE TO THE SUGGESTIONS FORUM (PLEASE READ BEFORE MAKING A SUGGESTION)
- Guide to Finding Duplicates
Thanks!
Reev
- BanMeOS
- Scratcher
500+ posts
<Is pen down?> block
This is a duplicate, as shown above and the workaround is simple (not saying it shouldn't be added)
workaround:
workaround:
define penDown
set [pen down? v] to [true]
pen down
define penUp
set [pen up? v] to [false]
pen up
([foo v] ::variables)
([list v] ::list)
set [ v].y to [] ::variables
([foo v] [ v] pos :: variables)
<[] is exactly [] :: operators>
<mouse moving? ::sensing>
point towards x: () y: () ::motion
glide () secs to [sprite v] ::motion
we reach 410 + 10 posts :: sound
lol ::operators
- TheSmartGuy1234
- Scratcher
1000+ posts
<Is pen down?> block
This is a duplicate, as shown above and the workaround is simple (not saying it shouldn't be added)
workaround:define penDown
set [pen down? v] to [true]
pen downdefine penUp
set [pen up? v] to [false]
pen up
not good due to already mentioned notes
It's AF day in my timzone.
ST: celebrate AF day in your timezones
Me: I live in new zealand
ST: oh no nononono
you use
sudo sh -c 'echo "text" > file'
echo 'text' | sudo tee file 1> /dev/null
Scroll* for more!
what are @SIMIA1358 and @TPRATTAY doing!??!?!
(2023/11/04 YEAR-MM-DD)
https://scratch.mit.edu/discuss/topic/652044/?page=222#post-7453472
griffpatch appel is broken
Games snippet:
10. yFzZ3MgsySzJLMv8yBzIfMqcynzJ04zLbMi8yNzJvNjM2KzYPNgsybzJLMi8yOzYzMk8yHzY3MmMyhzKrNlcytzYnMpcy6Ncy3zJLNoMyCzI7NisyQzL7Mhc2QzYrMkcyUzI7MisyBzKjNicyfzLHMrMymzJnMocygzYk
- Discussion Forums
- » Suggestions
- » <Is pen down?> block