Discuss Scratch
- Discussion Forums
- » Questions about Scratch
- » How do you make a when loved clicked?
- Cookiemousee
-
99 posts
How do you make a when loved clicked?
I want to know how to make a when love clicked so when you hit the love button it will say “Thanks, for loving my project!”.
- Austinato
-
1000+ posts
How do you make a when loved clicked?
It's actually Impossiblesort of possible; I've seen it done a few times.
I don't feel like finding some examples right now, but doing this “trick” is relatively simple. If I recall correctly, all you have to do is create a rectangular (or really any shape) sprite, move it below the bottom left part of the project window (where the love-it button is), and add a script that gets triggered when it's touching the mouse pointer. If done correctly, it'll trigger when you hover over the love-it button.
It's important to note that this isn't foolproof; users can just hover over the love-it button and not click love-it and it still triggers the script.
Last edited by Austinato (March 23, 2021 00:27:05)
- bluedragon8633
-
1000+ posts
How do you make a when loved clicked?
That's what I mean- you can also click the heart twice and it'll still say “Thanks!” even though you just un-loved it.-snip- Impossible
- ScratchCatHELLO
-
1000+ posts
How do you make a when loved clicked?
It's actually Impossiblesort of possible; I've seen it done a few times.
I don't feel like finding some examples right now, but doing this “trick” is relatively simple. If I recall correctly, all you have to do is create a rectangular (or really any shape) sprite, move it below the bottom left part of the project window (where the love-it button is), and add a script that gets triggered when it's touching the mouse pointer. If done correctly, it'll trigger when you hover over the love-it button.
It's important to note that this isn't foolproof; users can just hover over the love-it button and not click love-it and it still triggers the script.
Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
- bluedragon8633
-
1000+ posts
How do you make a when loved clicked?
It won't count as clicking the sprite if it's not actually in the stage. Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
- Cookiemousee
-
99 posts
How do you make a when loved clicked?
Well, I got an idea!
I could sense what position the mouse is at and mouse down than there we have it!
I could sense what position the mouse is at and mouse down than there we have it!
- bluedragon8633
-
1000+ posts
How do you make a when loved clicked?
Then I can drag the mouse over that area and it'll work the same, without triggering the Love button. Well, I got an idea!
I could sense what position the mouse is at and mouse down than there we have it!
- mlcreater
-
1000+ posts
How do you make a when loved clicked?
You must design a sprite that is of the shape:

Next, set it to draggable with the
Now, See Inside again, then use <touching (mouse-pointer v) ?> and maybe have the sprite "go to [front v] layer".
You cannot tell when the button is clicked, but you may encourage players to click it.

Next, set it to draggable with the
set drag mode [draggable v] :: sensingblock, then go to the ‘outside’ or ‘player’ page, where the love button is, and drag the sprite over the love button.
Now, See Inside again, then use <touching (mouse-pointer v) ?> and maybe have the sprite "go to [front v] layer".
You cannot tell when the button is clicked, but you may encourage players to click it.
- bluedragon8633
-
1000+ posts
How do you make a when loved clicked?
But again, users should only click the love button if they enjoyed the project and thought it was high-quality.
- ScratchCatHELLO
-
1000+ posts
How do you make a when loved clicked?
It won't count as clicking the sprite if it's not actually in the stage. Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
I meant to say “mouse down”
- bluedragon8633
-
1000+ posts
How do you make a when loved clicked?
Then you can hold the mouse down, swipe the cursor over the love button without actually clicking it, an it'll trigger.It won't count as clicking the sprite if it's not actually in the stage. Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
I meant to say “mouse down”
- CST1229
-
1000+ posts
How do you make a when loved clicked?
And I don't think the mouse down will trigger if you're not in the stage.Then you can hold the mouse down, swipe the cursor over the love button without actually clicking it, an it'll trigger.It won't count as clicking the sprite if it's not actually in the stage. Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
I meant to say “mouse down”
- happy_creature1
-
100+ posts
How do you make a when loved clicked?
I don't this is gonna work out well, is it?
- Cookiemousee
-
99 posts
How do you make a when loved clicked?
1. Make a blank sprite
2.
But when comments are used it will think you loved the project.
2.
when green flag clicked
forever
set x to (mouse x)
if <<<(mouse y) = [-180]> and <(x position) > [-240]>>> and <(x position) < [-170]>> then
say [Code goes here]
end
end
But when comments are used it will think you loved the project.
- Discussion Forums
- » Questions about Scratch
-
» How do you make a when loved clicked?