How to make a value increase every second!

help
coding
goatlord
values
tappergame

#1

Have you ever wondered how to make a value increase every second, and to be able to change numbers through purchases? Ever wondered how they do it in the best tapper games?
Wonder no more!
You need a repeat forever block and two values, for example, Eggs and Eggs per Second.
Place an increase value block inside the repeat forever that goes like this: Increase value Eggs by Eggs per second.
Then in the same repeat forever, place a wait 1000 milliseconds block.
Remember to give the per second value a starting number though!


Code is taken from my project, Easter Clicker.


Clicker produce clicks by itself ,how to do that!
#2

Great topic! :clap::smile:

I wish I could like.... ;-;


#3

Here, I liked for you...


#4

Awww, thanks! What is your username in HS?

Still can't like. ;-;


#5

Stick88 on hopscotch and forums.


#6

But...if your value was, like "Cheese" (IDK :smiley:) couldn't you just do "Repeat forever-increase value of "Cheese" by 1, wait 1000 miliseconds" instead?


#7

Yes, but with a separate value for the increase, you can make an option to change how much it increases by each second.


#8

Ah...smart one! What's your username on hopscotch? :smile:


#9

Same as the forum, GoatLord.


#10

Oh ok I'll go check your profile!


#11

Reviving topic.
I'm pretty sure it's useful.


#12

Activate.
Revival.
Mechanism.
Beep.
Boop.


#13

Revival toim!
Tem greetz u with very nise smoil!


#14

Very good topic
Glad you keep reviving it


#15

This gave me my first nice topic!
On my first day too!
I remember my first days here...
It was so confusing!


#16

Revival again


#17

Actually, by Hopscotch delay, I think this is false. When I run a block and a wait 1000 milliseconds block, it will take a little bit than a second because (maybe) Hopscotch determines every block to run (which means it has a little delay for like 20 milliseconds for every block, however the 20 milliseconds thing may change due to your iDevice performance) which it takes longer than 1 second.


#18

Well, I made this topic before I could even make smooth backgrounds.


#19

Revive