Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » clicker game
- Buddha_Codes
-
Scratcher
8 posts
clicker game
just set up a button with a when this sprite clicked if cash variable is greater than price then add amount to the variable for the amount per click
https://scratch.mit.edu/projects/1209469105/editor/
if my explanation didn't make sense check out my clicker game and copy/backpack it
https://scratch.mit.edu/projects/1209469105/editor/
if my explanation didn't make sense check out my clicker game and copy/backpack it
- BOBYBOY824
-
Scratcher
55 posts
clicker game
just set up a button with a when this sprite clicked if cash variable is greater than price then add amount to the variable for the amount per click
https://scratch.mit.edu/projects/1209469105/editor/
if my explanation didn't make sense check out my clicker game and copy/backpack it
Like this
when this sprite clicked
if <(Cash)> (Item price)> then
change [Cash per clicks] by (1)
Like item price is the price of the shop upgrade and cash per clicks is how much cash you get when you click whatever the thing to click is. Add
when this sprite clicked
change [Cash] by (Cash per clicks)
And add when green flag clicked set Cash per clicks to 1
For Cash per sec do the same thing as before but add a new variable called cash per sec and change all the variables from Cash per click to Cash per sec and do this:
when green flag clicked
forever
wait (1) secs
change [Cash] by (Cash per sec)
end
when green flag clicked
set [Clicks per sec] to [0]
- Discussion Forums
- » Help with Scripts
-
» clicker game