I made a button named ad1 and also a label named point count i also did some blocks but when i try.It doesn’t work it says NaN.i also initialiased variable (stored) so that when i click on ad1 it add 10 points and stays in the same place means even if i cut that app and reopen it should store. Please help.
And at the bottom of the screenshot, you are setting disableTimestampadone twice when you should be setting Pointcount for the second block.
Also, if you set a stored variable and then change the value being stored, that’s the wrong order. You should set stored variable Pointcount to stored variable Pointcount - 10 and then set Points count's Text to stored variable Pointcount. Otherwise, you are only changing the value being displayed… you’re not changing the value being saved to the device.
This is the code i did and it also worked but there are fews problems -
1- When i click on ad1(button) point shows 10 but when i press back the time automatically gets vanish means there are no points shown. i don’t why and might be they get auto reset at 0 i think.
2 - i want that when i click on ad1 it should add point and it did . but when i click on button 2 it should add 10 points to that point which is already there … Elobrate/Explanation
made a button named ad1 ok and ad2 ok
now when i click on ad1 it shows 10 point ok but doesn’t add 10 point when i click on ad2 to the same points which came on clicking on ad1 button. thankyou sir for helping out.
But you are mentioning event blocks (ad1 click, ad2 click) that were wrong in the last screenshot and you didn’t provide an updated screenshot. So that’s why I asked for a project link.