blackhornet this is what i need but How did you set wariables to " "
Anyway i edit yours capx and when i substract from sprites, text dont show substracted number
https://dl.dropboxusercontent.com/u/44710358/test.capx
That is a little problem: The text is showing the value of total
but total isn't re-calculated when a budynek is clicked, replace the "on start of layout" by an "every tick", and it will be fine (because it will be reset to 0, recalculated, and finally the display changes, before, there were no recalculating)
EDIT: you can also only recalculate when the fish is clicked, but in this case, you must assure than the value at start of layout will be good too