Discuss Scratch

rocky95
Scratcher
5 posts

how do i make a clicker game that doesnt let you hold down and get a billion points

how m8
ShinigamiBlacky
Scratcher
100+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

wait until <not <mouse down?>>
deck26
Scratcher
1000+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

forever
wait until <mouse down?>
whatever
wait until <not <mouse down?>>

end
TheLogFather
Scratcher
1000+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

Or:
when this sprite clicked // or maybe "when stage clicked", if that's more appropriate for your situation
...whatever... :: grey

Note that using above will still run the script on a click even after the project was stopped (unless you put in some scripting to detect and prevent that…)

badatprogrammingibe
Scratcher
500+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

deck26 wrote:

forever
wait until <mouse down?>
whatever
wait until <not <mouse down?>>

end
This might be more suitable:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <<mouse down?> and <touching [mouse pointer v]?>>>
end
deck26
Scratcher
1000+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

badatprogrammingibe wrote:

deck26 wrote:

forever
wait until <mouse down?>
whatever
wait until <not <mouse down?>>

end
This might be more suitable:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <<mouse down?> and <touching [mouse pointer v]?>>>
end
If they want the click to be on a particular spite, yes, but that wasn't actually specified. The key is the ‘wait until not’ anyway.
TheLogFather
Scratcher
1000+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

badatprogrammingibe wrote:

This might be more suitable:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <<mouse down?> and <touching [mouse pointer v]?>>>
end
Also note this gets triggered by holding down the mouse button while shaking the cursor on & off the sprite (which may or may not be acceptable for the project in question…)

badatprogrammingibe
Scratcher
500+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

TheLogFather wrote:

badatprogrammingibe wrote:

This might be more suitable:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <<mouse down?> and <touching [mouse pointer v]?>>>
end
Also note this gets triggered by holding down the mouse button while shaking the cursor on & off the sprite (which may or may not be acceptable for the project in question…)

Oops, this should work:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <mouse down?>>
end
coderKingsley
Scratcher
54 posts

how do i make a clicker game that doesnt let you hold down and get a billion points

when this sprite clicked
...
wait until <not <touching [ mouse-pointer] ?>>
notabot113
Scratcher
20 posts

how do i make a clicker game that doesnt let you hold down and get a billion points

when this sprite clicked
change [clicks v] by (1)
Hope I helped!
TheGypsie
New Scratcher
9 posts

how do i make a clicker game that doesnt let you hold down and get a billion points

badatprogrammingibe wrote:

TheLogFather wrote:

badatprogrammingibe wrote:

This might be more suitable:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <<mouse down?> and <touching [mouse pointer v]?>>>
end
Also note this gets triggered by holding down the mouse button while shaking the cursor on & off the sprite (which may or may not be acceptable for the project in question…)

Oops, this should work:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <mouse down?>>
end
how would i get the … block?
TheAnomalousPseudo
Scratcher
1000+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

This topic is from 2018. Please make your own topic rather than reviving an old one.
TheGypsie
New Scratcher
9 posts

how do i make a clicker game that doesnt let you hold down and get a billion points

TheAnomalousPseudo wrote:

This topic is from 2018. Please make your own topic rather than reviving an old one.
how? sorry i just got scratch
TheAnomalousPseudo
Scratcher
1000+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

TheGypsie wrote:

TheAnomalousPseudo wrote:

This topic is from 2018. Please make your own topic rather than reviving an old one.
how? sorry i just got scratch
No problem! Go to the relevant subforum (Help With Scripts is right in this case) and click the blue “New Topic” button near the top right of the screen.

Last edited by TheAnomalousPseudo (May 25, 2021 12:40:17)

GalactekWasTaken
Scratcher
12 posts

how do i make a clicker game that doesnt let you hold down and get a billion points

try this:
when this sprite clicked
change [...] by (...)

Last edited by GalactekWasTaken (Dec. 6, 2021 01:06:40)

leonsasha
Scratcher
1 post

how do i make a clicker game that doesnt let you hold down and get a billion points

I don't think that any of them work because I tried some of them in my project.
And by the way what block is dot dot dot?
Fieryunicat-1
Scratcher
1 post

how do i make a clicker game that doesnt let you hold down and get a billion points

can someone please tell me how to make it to where when you hold the mouse button you don't get points but when you click you do get points.
chriscreators14
Scratcher
500+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

TheGypsie wrote:

(#11)

badatprogrammingibe wrote:

TheLogFather wrote:

badatprogrammingibe wrote:

This might be more suitable:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <<mouse down?> and <touching [mouse pointer v]?>>>
end
Also note this gets triggered by holding down the mouse button while shaking the cursor on & off the sprite (which may or may not be acceptable for the project in question…)

Oops, this should work:
forever
wait until <<mouse down?> and <touching [mouse pointer v] ?>>
...
wait until <not <mouse down?>>
end
how would i get the … block?
what?
medians
Scratcher
1000+ posts

how do i make a clicker game that doesnt let you hold down and get a billion points

This was necroposted on by the way, look at the dates. I realized when I saw “TheLogFather” as a username.

chriscreators14 wrote:

what?
They were asking about the grey block that shows up in scratchblocks when you type 3 dots.

Powered by DjangoBB