Discuss Scratch

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:
forever
if <mouse down?> then
say [i've been clicked! :D]
end

end
But I just want the block(s) above.

Last edited by yoshifan509 (Feb. 27, 2017 02:08:14)

duckboycool
Scratcher
1000+ posts

When Clicked block

What would the top blocks do?
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


WolfCat67 wrote:

when this sprite clicked

if <touching [mouse-pointer v]?> then
if <mouse down?> then

end
end
|
|
v

yoshifan509 wrote:

I know this exists:
forever
if <mouse down?> then
say [i've been clicked! :D]
end

end
But I just want the block(s) above.
duckboycool
Scratcher
1000+ posts

When Clicked block

It is a one block “workaround”
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:
when clicked {say [Hello!]} :: control
But I don't think you know how that would work. You see, you think that this that is the same as this workaround:
forever
if <<touching [mouse pointer v] ?> and <mouse down?>> then
say [Hello!]
end
end
But its actually the same as:
if <<touching [mouse pointer v] ?> and <mouse down?>> then
say [Hello!]
end
Without 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:
when green flag clicked
wait (10) secs
when clicked {say [Hello!]} :: control
What 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:
<being pressed? :: sensing>
or
if clicked then {} :: control

And besides, we already have this:
when this sprite clicked
Scratch_Mapping
Scratcher
100+ posts

When Clicked block

Already exists.
when this sprite clicked
I-Iz-A-Litten
Scratcher
1000+ posts

When Clicked block

no support, there is already a workaround
Charles12310
Scratcher
1000+ posts

When Clicked block

I-Iz-A-Litten wrote:

no support, there is already a workaround
Saying 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]?>

Powered by DjangoBB