Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27348

VS 2013 Cookie Clicker Program

$
0
0
Hello, I am making a program for my brother (for christmas) and I am remaking cookie clicker, to be a clicker of his favorite thing.
Right now I'm working on the "buying" part. The first thing you buy is "Miner" I got the code to add up to the total amount, but the problem is...
You can only click 4 times, because I only set 4 timers. Is there a way to like "copy" the timer or make a new one.
Right now this is my code for the buy button:
Code:

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        Static Switch As Integer
        Select Case Switch
            Case Is = 0
                MinerLoop.Enabled = True
                CheckBox1.Checked = True
            Case Is = 1
                MinerLoop2.Enabled = True
                CheckBox2.Checked = True
            Case Is = 2
                MinerLoop3.Enabled = True
                CheckBox3.Checked = True
            Case Else
                MinerLoop4.Enabled = True
                CheckBox4.Checked = True
        End Select
        Switch += 1
    End Sub

It only goes up to 4, and I also need it to cost a certain amount of the "click" item.
If you understand, and can help me, please do :)

Viewing all articles
Browse latest Browse all 27348

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>