Discuss Scratch

bigbobbyzmde
Scratcher
6 posts

click x2

I'm making a clicker game and it cost 100 money to get x2 but i don't know how to code it so if you can please tell me how to code x2 click
ScriptTimedOut
Scratcher
100+ posts

click x2

The base click code should be like this
whenthisspriteclickedchangetimes clickedbyclickmultiplier
(click multiplier) should initially start out as “1”, so 1 click will change the variable by 1.

Once a multiplier is bought, it should change the click multiplier variable by one. Then, instead of 1 click per second, it's 2.

Hopefully this helps.
bigbobbyzmde
Scratcher
6 posts

click x2

broadcast
this is way to hard to get 2x clicks
UnlimitedArts
New Scratcher
1 post

click x2

how would you make the click multiplied by 2?

Kono_Muda_Da
Scratcher
100+ posts

click x2

make a click power variable and set it to 1 at beginning of game then do this

whenthisspriteclickedchangescorebyclickpower
lionelbfb
Scratcher
3 posts

click x2

imamgloota
Preston_2fanAlt
Scratcher
1 post

click x2

bigbobbyzmde wrote:

broadcast
this is way to hard to get 2x clicks
How i do broadcast with X2 click?
cookieclickerer33
Scratcher
1000+ posts

click x2

Preston_2fanAlt wrote:

bigbobbyzmde wrote:

broadcast
this is way to hard to get 2x clicks
How i do broadcast with X2 click?
You don’t need to

Just

whenthisspriteclickedchangeCookiesbycookiesperclick
Then in the upgrade sprite
whenthisspriteclickedifcookies>price-0.1thenchangeCookies per clickby1changeCookiesbyprice*-1setPricetoroundprice*1.3
jwashburn24
Scratcher
1 post

click x2

This was a big help
cosmosaura
Scratch Team
1000+ posts

click x2

Topic closed to stop future necroposts.

Powered by DjangoBB