Discuss Scratch
- Discussion Forums
- » Suggestions
- » When Clicked block
- yoshifan509
-
Scratcher
100+ posts
When Clicked block
Is is possible to add this block:
when clicked {say [hi]}
// this could work too:
when [sprite1 v] clicked
// or
if [sprite1 v] clicked then {do something}I know this exists:foreverBut I just want the block(s) above.
if <mouse down?> then
say [i've been clicked! :D]
end
end
Last edited by yoshifan509 (Feb. 27, 2017 02:08:14)
- yoshifan509
-
Scratcher
100+ posts
When Clicked block
Actually, I don't need the top 3 blocks, but the fourth one I'll keep.
- WolfCat67
-
Scratcher
1000+ posts
When Clicked block
when this sprite clicked
if <touching [mouse-pointer v]?> then
if <mouse down?> then
end
end
- yoshifan509
-
Scratcher
100+ posts
When Clicked block
|when this sprite clicked
if <touching [mouse-pointer v]?> then
if <mouse down?> then
end
end
|
v
I know this exists:foreverBut I just want the block(s) above.
if <mouse down?> then
say [i've been clicked! :D]
end
end
- A_Geeky_Jawa
-
Scratcher
100+ posts
When Clicked block
I don't think I fully understand what you're suggesting but if I'm correct you want this:
And besides, we already have this:
when clicked {say [Hello!]} :: controlBut I don't think you know how that would work. You see, you think that this that is the same as this workaround:foreverBut its actually the same as:
if <<touching [mouse pointer v] ?> and <mouse down?>> then
say [Hello!]
end
end
if <<touching [mouse pointer v] ?> and <mouse down?>> thenWithout the forever loop. Also, how do you explain, ‘when clicked’? It's already in a script, so would that make the script, then how will you explain stuff like this:
say [Hello!]
end
when green flag clickedWhat if you click on the sprite before 10 seconds happen? Would it skip the entire script just for that? A more proper block I believe are these:
wait (10) secs
when clicked {say [Hello!]} :: control
<being pressed? :: sensing>or
if clicked then {} :: controlAnd besides, we already have this:
when this sprite clicked
- Charles12310
-
Scratcher
1000+ posts
When Clicked block
no support, there is already a workaroundSaying there is a workaround annoys me. Many users are annoyed with it because it's nothing bad even if there is a simple workaround. You could just simply say a block related to this has already existed. They are technically not workarounds because they are the same block with the same function.
No Support. We already have the blocks:
when this sprite clicked // this one
if <<mouse down?> and <touching [mouse pointer v]?>> then // and this one
...
end
- kenny2scratch
-
Scratcher
500+ posts
When Clicked block
I'm pretty sure the first suggestion is already here:
when this sprite clicked
- Botcho_Otkho
-
Scratcher
1000+ posts
When Clicked block
No support,easy workaround:
<mouse down?> and <touching [Sprite1 v]?>
- Discussion Forums
- » Suggestions
-
» When Clicked block








