Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Ok I am making a cookie clicker clone where you have to click a computer and buy upgrades and I want to be that everytime you buy a upgrade its price increases by *3 and the price is a global value. So here is what I have on my system>add to value: | gpuupcost *3 | so I put that and at first it times it by 4 then its just random?? gpuupcost is the global value im trying to times. So if someone could help me that would be great.
You are adding 3 times the value to the value itself, so you get 4 times. Then 16, then 64... What you have to do is use "Set value".
This is because you are using "add-to-value" which means
PRICE = PRICE + 3*PRICE
instead use "set value" and set it to 3*PRICE, that equates to
PRICE = 3*PRICE
R
Develop games in your browser. Powerful, performant & highly capable.
Thanks rho your solution worked!