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
http://image.noelshack.com/fichiers/2017/27/4/1499294759-sin-titulo.jpg
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?
attempt
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"