Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a multiplier for my game?
- 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!
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?
Hello, if your reading this, then thank you!I read multipliers as multiplayer :sob:
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!
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
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?
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 likeThat already is in the code but I can make an example project anyways, one second.
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?
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))
- zeiraph
-
Scratcher
100+ posts
How to make a multiplier for my game?
please dont post on old topics! it makes it harder to help people whos problems haven't been fixeddefine
- Discussion Forums
- » Help with Scripts
-
» How to make a multiplier for my game?