Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » button release
- 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
- 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
- jayden743
-
Scratcher
1 post
button release
Last edited by jayden743 (April 9, 2019 21:55:57)
- 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
3asyThis topic is resolved already.when green flag clicked
forever
if <key (space v) is pressed> ::#efab0e
repeat until <not<key (space v) pressed>
. . . ::#686868
- orangetheory
-
Scratcher
500+ posts
button release
What about on tablet/iPadhttps://scratch.mit.edu/discuss/7/topic/add/
-spam-
Please don't necropost while spamming or vice versa
- javierward101
-
Scratcher
14 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
- javierward101
-
Scratcher
14 posts
button release
Necroposting is the dumbest rule on the internet. If it's on the internet it's on the internet. No questions askedWhat about on tablet/iPadhttps://scratch.mit.edu/discuss/7/topic/add/
-spam-
Please don't necropost while spamming or vice versa
- Discussion Forums
- » Help with Scripts
-
» button release
