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
hi, i need some help of us, i created a family and worked good if i don't use the webstorage or local storage ( subtract correctly), but when i add the webstorage don't subtract the gold and don't dubtract and save the difference in the variable GOLD
Develop games in your browser. Powerful, performant & highly capable.
try to set a text to comprar.precio to ensure its reading back a correct value. also it looks that you dont have any global variables but i see you calling on them, are they perhaps on a different layout or are they just instance variables?
global variable "Gold" =0
global variable "Price" = 0
on pressed, set "Price" = comprar.precio (or you can just type the number manually)
subtract "Price" from "Gold"