Hi - I am trying to make a counter that goes up 10 when you press a button and goes down 10 when you press a button. I have figured out how to do that i just dont know how to make it stay because when i go to a different page it changes to 0.
Use TinyDB to store the value of count on each click and write a block / When Screen XYZ initialize// set Global count to > Get count value from TinyDB
//Ct tricks
what is TinyDB
The settings app tutorial give a guide how to use this component:
Are you using Thunkable X or Thunkable Classic?
in this video in calls it TinyDB is this equivalent to the localDB, RealtimeDB, or Media DB
Aha, then I suppose you are using Thunkable X @Anna_Bushlack. I’ve changed the category of this post to reflect this.
I’d recommend using a stored variable to remember your points score:
https://docs.thunkable.com/variables#app-stored-and-cloud-variables
It has been almost a year sence I started this project. I have desided to continue working on it now sence there is no school. I went through the variables link you gave me and it still does not work.
What am I doing wrong.
Thanks for posting this question, I think this is a great starting place for any programmer looking to learn the Thunkable X platform and to learn basic programming logic! (I am one of those new learners btw!)
I will make a tutorial and post on this!
Hi @Anna_Bushlack, I have just posted a tutorial for making a simple counter app
Thanks I will try that right now.
also, @Anna_Bushlack, in this I have another example of a counter app that has 10 counter but uses only 1 Cloud variable and 5 buttons.
you use a switch to change between which set of 5 counter you use.