Discuss Scratch

Aelehmas
New Scratcher
2 posts

How to make autoclickers for a clicker game?

I'm making a clicker game and i have no idea how to make an item that automatically clicks for you. I already know how to program getting it, it's the object's code that I'm having trouble with. Any help would be appreciated. thanks
Edit: COMPLETELY FORGOT TO MENTION that It's not an issue making them autoclick, it's an issue getting more than one to progressively get faster the more you have.

Last edited by Aelehmas (March 28, 2019 00:51:20)

asterlily
Scratcher
47 posts

How to make autoclickers for a clicker game?

well…make an ‘autoclickers’ variable, the more the user buys the more it goes up, the more it goes up, the more clicks are gained over time

wait (1) secs
if <(Autoclickers) = [1]> then
change [clicks] by (2)
if <(Autoclickers) = [2]> then
change [clicks] by (4)
if <(Autoclickers) = [3]> then
change [clicks] by (6)
end
IF you decide to let the player have infinite autoclickers a problem could strike with my code, so the alternative path will be:
buying it:
if <[Clicks] > [24]> then
change [Autoclickers] by (1)
end

functioning:

wait (1) secs
change (Clicks) by (Autoclickers)

no matter how many the player buys, it will ALWAYS function the way it should. raise the autoclickers per buy if you want more clicks to happen from the purchase…if you want MULTIPLE to function make multiple auto-clicker sprites

Last edited by asterlily (March 28, 2019 01:03:20)

Aelehmas
New Scratcher
2 posts

How to make autoclickers for a clicker game?

asterlily wrote:

well…make an ‘autoclickers’ variable, the more the user buys the more it goes up, the more it goes up, the more clicks are gained over time

wait (1) secs
if <(Autoclickers) = [1]> then
change [clicks] by (2)
if <(Autoclickers) = [2]> then
change [clicks] by (4)
if <(Autoclickers) = [3]> then
change [clicks] by (6)
end
IF you decide to let the player have infinite autoclickers a problem could strike with my code, so the alternative path will be:
buying it:
if <[Clicks] > [24]> then
change [Autoclickers] by (1)
end

functioning:

wait (1) secs
change (Clicks) by (Autoclickers)

no matter how many the player buys, it will ALWAYS function the way it should. raise the autoclickers per buy if you want more clicks to happen from the purchase…if you want MULTIPLE to function make multiple auto-clicker sprites
Wow, thanks! Needed this to amuse the entire 7th grade.
Erts57
Scratcher
23 posts

How to make autoclickers for a clicker game?

Aelehmas wrote:

asterlily wrote:

well…make an ‘autoclickers’ variable, the more the user buys the more it goes up, the more it goes up, the more clicks are gained over time

wait (1) secs
if <(Autoclickers) = [1]> then
change [clicks] by (2)
if <(Autoclickers) = [2]> then
change [clicks] by (4)
if <(Autoclickers) = [3]> then
change [clicks] by (6)
end
IF you decide to let the player have infinite autoclickers a problem could strike with my code, so the alternative path will be:
buying it:
if <[Clicks] > [24]> then
change [Autoclickers] by (1)
end

functioning:

wait (1) secs
change (Clicks) by (Autoclickers)

no matter how many the player buys, it will ALWAYS function the way it should. raise the autoclickers per buy if you want more clicks to happen from the purchase…if you want MULTIPLE to function make multiple auto-clicker sprites
Wow, thanks! Needed this to amuse the entire 7th grade.
Same!
maxxer24
Scratcher
1 post

How to make autoclickers for a clicker game?

asterlily wrote:

well…make an ‘autoclickers’ variable, the more the user buys the more it goes up, the more it goes up, the more clicks are gained over time

wait (1) secs
if <(Autoclickers) = [1]> then
change [clicks] by (2)
if <(Autoclickers) = [2]> then
change [clicks] by (4)
if <(Autoclickers) = [3]> then
change [clicks] by (6)
end
IF you decide to let the player have infinite autoclickers a problem could strike with my code, so the alternative path will be:
buying it:
if <[Clicks] > [24]> then
change [Autoclickers] by (1)
end

functioning:

wait (1) secs
change (Clicks) by (Autoclickers)

no matter how many the player buys, it will ALWAYS function the way it should. raise the autoclickers per buy if you want more clicks to happen from the purchase…if you want MULTIPLE to function make multiple auto-clicker sprites
same

Powered by DjangoBB