#clicker upgrade

39 messages · Page 1 of 1 (latest)

shadow shard
#

I'm trying to make a basic clicker (original I know ) but I can't figure out how to make it so that the price of the upgrade goes up every time you buy it

hasty marsh
#

The easiest way of doing this would be to save the number of times you have bought the upgrade and use that in the calculation like X(times bought) X+1*100 would be it going up by 100 every time you buy it.

shadow shard
shadow shard
safe shuttle
#

Multiply it or add?

shadow shard
safe shuttle
shadow shard
safe shuttle
#

Just place a variable and multiply chip

#

Then make a "loop"

#

Variable>multiply
Multiply>variable

shadow shard
hasty marsh
shadow shard
safe shuttle
#

Yes

shadow shard
#

I just started putting stuff in random places and now it goes up when I press the button 👍

shadow shard
#

@safe shuttle I'm now having trouble that whenever a new person joins the room their upgrade price will be 0

hasty marsh
#

Use an event receiver set to when a player joins, and if their float Var is equal to 0 set it to whatever the base price is.

shadow shard
#

Alright I will try figure that out

safe shuttle
#

You can configure the variable

shadow shard
#

It is a cloud variable though it doesn't let me change the value

shadow shard
hasty marsh
shadow shard
#

I thought that might be involved but I don't understand what to do with it

hasty marsh
#

wire the blue output of the Float Variable to the first input of the equals, then wire the output of the equals to an if chip

shadow shard
#

I have done it

#

How do I make it so that it adds the price if it equals 0 I never use int variables or anything cloud data and stuff so sorry if I'm stupid

hasty marsh
#

wire the orange output of the if (the one that says "then") to the orange input of the Float Variable

#

and the orange output of an event receiver set to player joined to the input of the if

shadow shard
#

I've got thus

#

Do I configure the blue input on the variable to what I want the default price to be ?

hasty marsh
#

yeah

shadow shard
#

Alright I'm gonna see if it works thanks lots for the help

hasty marsh
#

If you want a full shop system here you go, this is kind of messy cuz I made it in two minutes.

shadow shard
#

Thanks:] my brain is just currently dying I don't know what's happened but it was working before and now it isn't and I've realised I'm using int variables and cloud variables but it was working and I don't even know

hasty marsh
#

happens to us all 😔

shadow shard
#

Went back to an earlier save and now everything is fine . Circuits scare me