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"