Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
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"