Discuss Scratch

Cookiemousee
Scratcher
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!”.
bluedragon8633
Scratcher
1000+ posts

How do you make a when loved clicked?

Impossible
Austinato
Scratcher
1000+ posts

How do you make a when loved clicked?

bluedragon8633 wrote:

Impossible
It's actually sort 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
Scratcher
1000+ posts

How do you make a when loved clicked?

Austinato wrote:

bluedragon8633 wrote:

Impossible
-snip-
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.
ScratchCatHELLO
Scratcher
1000+ posts

How do you make a when loved clicked?

Austinato wrote:

bluedragon8633 wrote:

Impossible
It's actually sort 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
Scratcher
1000+ posts

How do you make a when loved clicked?

ScratchCatHELLO wrote:

Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
It won't count as clicking the sprite if it's not actually in the stage.
Cookiemousee
Scratcher
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!
bluedragon8633
Scratcher
1000+ posts

How do you make a when loved clicked?

Cookiemousee wrote:

Well, I got an idea!

I could sense what position the mouse is at and mouse down than there we have it!
Then I can drag the mouse over that area and it'll work the same, without triggering the Love button.
mlcreater
Scratcher
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
set drag mode [draggable v] :: sensing
block, 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
Scratcher
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
Scratcher
1000+ posts

How do you make a when loved clicked?

bluedragon8633 wrote:

ScratchCatHELLO wrote:

Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
It won't count as clicking the sprite if it's not actually in the stage.

I meant to say “mouse down”
bluedragon8633
Scratcher
1000+ posts

How do you make a when loved clicked?

ScratchCatHELLO wrote:

bluedragon8633 wrote:

ScratchCatHELLO wrote:

Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
It won't count as clicking the sprite if it's not actually in the stage.

I meant to say “mouse down”
Then you can hold the mouse down, swipe the cursor over the love button without actually clicking it, an it'll trigger.
CST1229
Scratcher
1000+ posts

How do you make a when loved clicked?

bluedragon8633 wrote:

ScratchCatHELLO wrote:

bluedragon8633 wrote:

ScratchCatHELLO wrote:

Wouldn't you just be able to use “when sprite clicked” or am I just being dumb
It won't count as clicking the sprite if it's not actually in the stage.

I meant to say “mouse down”
Then you can hold the mouse down, swipe the cursor over the love button without actually clicking it, an it'll trigger.
And I don't think the mouse down will trigger if you're not in the stage.
happy_creature1
Scratcher
100+ posts

How do you make a when loved clicked?

I don't this is gonna work out well, is it?
Cookiemousee
Scratcher
99 posts

How do you make a when loved clicked?

1. Make a blank sprite
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.

Powered by DjangoBB