> first thing to do is to add 2 buttons, 2 texts and the mouse object.
> give one text object the following instance variable(you can add these in the properties menu on the left of the screen). Call the variable Score, this will be a number starting from 0.
> Give the other text object the variable UpgradeCost also starting from 1
>
> in the event do the follow thing:
>
Mouse > On object clicked > left clicked on "first button"[/code:364xe2xl]
> This will perform an action when a user clicked on the button
>
> The action will be:
> [code:364xe2xl]"text with the score variable" > add to > 1 to Score.
> "text with the score variable" > set text > "Score: " &[name of the button].Score [/code:364xe2xl]
> This will add 1 to score every time the button is pressed.
>
> The other button will upgrade the automatic scoring. The event will be:
> [code:364xe2xl]Mouse > On object clicked > left clicked on "second button".
> "text with the upgrade variable" > Compare instance variable > Upgrade equal or larget then "int(self.Upgrade^1.5+1)"[/code:364xe2xl]
> The action will be:
> [code:364xe2xl]"text with the upgrade variable" > add to > 1 to upgrade.
> "text with the upgrade variable" > set text > "Upgrade cost: " & int([name of the 2nd button].Upgrade^1.5 + 1) [/code:364xe2xl]
> This will add 1 to upgrade every time Upgrade has been "upgraded". The price of the upgrade will be raise with the formula 'Upgrade ^ 1,5 + 1'
>
> Thats it. Try change the formula to your own to make the game interesting
>
how do you add offline earning?
so the first part in C3 is "Score: " & score
How do you solve the: "Upgrade cost: " & int([name of the 2nd button].Upgrade^1.5 + 1) -thing?
Cause C3 does not recognize this way.