Discuss Scratch

BlueWolfBedwars
Scratcher
9 posts

How to make a multiplier for my game?

Hello, if your reading this, then thank you!
I am trying to introduce multipliers in my game, and that when you click you could buy multipliers, for example X2, X3 x4, x5, and etc. My project link is https://scratch.mit.edu/projects/922672769/ that way you can use my actual variables to make it obvious. The real thing is a CLICK multiplier, Ive seen these in games and wanted one myself.

Thanks again!

Last edited by BlueWolfBedwars (April 10, 2025 12:21:17)

MineTurte
Scratcher
1000+ posts

How to make a multiplier for my game?

BlueWolfBedwars wrote:

Hello, if your reading this, then thank you!
I am trying to introduce multipliers in my game, and that when you click you could buy multipliers, for example X2, X3 x4, x5, and etc. My project link is https://scratch.mit.edu/projects/922672769/ that way you can use my actual variables to make it obvious. The real thing is a CLICK multiplier, Ive seen these in games and wanted one myself.

Thanks again!
I read multipliers as multiplayer :sob:

The multiplier is really easy, simple multiplication:
when this sprite clicked
change [ clicks] by ((1) * (multiplier))

And for the code in the “shop” or button to upgrade multipliers:
when green flag clicked
set [ clicks] to [0]
set [ multiplier] to [1]

when this sprite clicked
if <(((multiplier) * (15)) - (1)) < (clicks)> then // in the multiplier * #, the # can be replaced to what you feel is balanced (exponential growth)
change [ multipier] by (1)
change [ clicks] by (((multiplier) * (10)) * (-1))
end

Hope this helps!
if I misunderstood your question I apologize i'm juggling between 4 different topics

Last edited by MineTurte (April 10, 2025 14:07:59)

BlueWolfBedwars
Scratcher
9 posts

How to make a multiplier for my game?

Hey how are you.. thank you so much for answering my question, yet theres a key code I need, I want the ability for the player to be able to ‘BUY’ Multiplier like

when this sprite clicked
if points < 100000 then
somehow change multiplier to 2

and that when i change multiplier that i can change points by 2 every click
MineTurte
Scratcher
1000+ posts

How to make a multiplier for my game?

BlueWolfBedwars wrote:

Hey how are you.. thank you so much for answering my question, yet theres a key code I need, I want the ability for the player to be able to ‘BUY’ Multiplier like

when this sprite clicked
if points < 100000 then
somehow change multiplier to 2

and that when i change multiplier that i can change points by 2 every click
That already is in the code but I can make an example project anyways, one second.
MineTurte
Scratcher
1000+ posts

How to make a multiplier for my game?

Here you go! Project here. If you have anymore questions feel free to ask!
CardsUp
Scratcher
22 posts

How to make a multiplier for my game?

when green flag clicked
set [Ok v] to [text]
say [(Ok))
CardsUp
Scratcher
22 posts

How to make a multiplier for my game?

define 
zeiraph
Scratcher
100+ posts

How to make a multiplier for my game?

CardsUp wrote:

define 
please dont post on old topics! it makes it harder to help people whos problems haven't been fixed

Powered by DjangoBB