Discuss Scratch

Pendragon64
Scratcher
21 posts

button release

Is there any way I can get the blocks so when I release a button it does something?
liam48D
Scratcher
1000+ posts

button release

Either of these work:

when this sprite clicked
wait until <not <mouse down?>>
if <touching [mouse-pointer v]?> then
... :: extension
end

when GF clicked
forever
wait until <<mouse down?> and <touching [mouse-pointer v]>>
wait until <not <mouse down?>>
if <touching [mouse-pointer v]> then
... :: extension
end
end
Pendragon64
Scratcher
21 posts

button release

thanks!
liam48D
Scratcher
1000+ posts

button release

Pendragon64 wrote:

thanks!
No problem.
Pendragon64
Scratcher
21 posts

button release

Sorry, I meant a keyboard button, like the spacebar
enblazingfire
Scratcher
100+ posts

button release

Try

when green flag clicked
forever

if <key [... v] pressed?> then
wait until <not <key [... v] pressed?>>
...
end

end
liam48D
Scratcher
1000+ posts

button release

Indeed, emblazingfire's would work.
jayden743
Scratcher
1 post

button release

‏‏‎










‏‏‎








‏‏‎


Last edited by jayden743 (April 9, 2019 21:55:57)

14152cool
Scratcher
100+ posts

button release

do not spam, necropost, or spam while necroposting.
The_Imagineer_
Scratcher
100+ posts

button release

3asy
when green flag clicked
forever
if <key (space v) is pressed> ::#efab0e
repeat until <not<key (space v) pressed>
. . . ::#686868
Kraken_Games
Scratcher
100+ posts

button release

The_Imagineer_ wrote:

3asy
when green flag clicked
forever
if <key (space v) is pressed> ::#efab0e
repeat until <not<key (space v) pressed>
. . . ::#686868
This topic is resolved already.
nash-j
Scratcher
1 post

button release

What about on tablet/iPad
orangetheory
Scratcher
500+ posts

button release

nash-j wrote:

What about on tablet/iPad
https://scratch.mit.edu/discuss/7/topic/add/

jayden743 wrote:

‏‏‎
-spam-

Please don't necropost while spamming or vice versa
javierward101
Scratcher
14 posts

button release

liam48D wrote:

Either of these work:

when this sprite clicked
wait until <not <mouse down?>>
if <touching [mouse-pointer v]?> then
... :: extension
end

when GF clicked
forever
wait until <<mouse down?> and <touching [mouse-pointer v]>>
wait until <not <mouse down?>>
if <touching [mouse-pointer v]> then
... :: extension
end
end
javierward101
Scratcher
14 posts

button release

orangetheory wrote:

nash-j wrote:

What about on tablet/iPad
https://scratch.mit.edu/discuss/7/topic/add/

jayden743 wrote:

‏‏‎
-spam-

Please don't necropost while spamming or vice versa
Necroposting is the dumbest rule on the internet. If it's on the internet it's on the internet. No questions asked

Powered by DjangoBB