C#C
C#3y ago
ansy

cookie clicker store

Hello i am here ones again asking for help. My store buttons need to be dissabled if i don't have te right amount of cookies and enable when i have the right amount or more. I already have a method for isolating the number from the text in my textblock. The problem i have been having is that when i get my store too take away cookies the counting of the cookies just resumes from the last number that was on before the subtraction of the number. example: i have 18 cookies and i pay for the clicker worth 15 cookies. It subtracts and it sais 3 cookies, but when i click on the cookie again it jumps to 19 cookies all of a sudden. Another problem i have been having is the button disabling it doesn't wanna work however hard i try. Can someone help me i really need this to work.

here is the repository link;https://bitbucket.org/pxlrepository/c-project-cookie-clicker/src/master/
I work in a WPF in a .net framework in visual studios

If anyone can help it would be much appreciated
Was this page helpful?