Discuss Scratch

ThyFunniGuy
Scratcher
3 posts

How to make a clicks per second upgrade in a scratch game?

I am trying to make a CPS feature in a clicker game. I am currently using Griffpatch's number counter code for the score, and i tried the “increase clicks by score method.” Like this:
changecpsby1changescorebycps

but when I run this code, the cps is set to nine and the score shoots up way more than nine every second. The index variable for the score is nine, so that has something to do with it. Any help?

Last edited by ThyFunniGuy (Jan. 17, 2025 16:52:23)

jmb1293634
Scratcher
500+ posts

How to make a clicks per second upgrade in a scratch game?

try this:
whenupgradechangecpsby1whenthisspriteclickedchangescorebycps
if that is what you mean by
changecpsby1changescorebycps
then sorry can you share the project too allow us to test it
ThyFunniGuy
Scratcher
3 posts

How to make a clicks per second upgrade in a scratch game?

jmb1293634 wrote:

try this:
whenupgradechangecpsby1whenthisspriteclickedchangescorebycps
if that is what you mean by
changecpsby1changescorebycps
then sorry can you share the project too allow us to test it

Okay, i'll tell you how to get to the clicker section. https://scratch.mit.edu/projects/1099576460/

Once you launch it, hover your cursor at the middle-top section of the screen until you see a white box with a question mark. Click that, and there you go.

Powered by DjangoBB