hi I hope any one can help me to my project, I have a Welcome screen, on the welcome screen I have a Home button I would like it to happen when the user presses the button for the first time it will go to the Introduction screen but when he finishes the Introduction screen the next time he presses the button on the home screen it will go to the menu screen, how do I make it and set it to thunkable blocks, can any one give at least sample set of blocks or guide me to do it?
Use a stored variable where you have to save true or false . Stored variable save data permanent so you can get the value every time the app starts .
When app start for the first time change the value of the variable from true to false . In button code add a condition
If variable is true
Then change variable value and go to introduction
Else go to menu
thank you so much for your reply can you attach sample blocks i can use for that?
If you search the forums for “first run”, you will find examples and advice for how to do what you’re wanting.
have you searched for your solution ?
This is one way
Hi, thank you for replying to my question, it helped me a lot. I still have something to ask again, I hope you can help me again. I have a sample of the score block that I copied from thunkable’s youtube tutorial and it works what I would like to do is take the first 4 attiempted scores of the user and put it in the data base I have already created a data base that is connected to the scoreboard where 4 scores will be taken. My problem is that I don’t know how to get the 4 attiempt score of the user and how to put it in the data base
The hard level scores are in row #5 in your data source but you are getting values from row #4. The header row (Type of Level, 1st Attempt, etc.) is also a row. It’s row #1. So you have to include it when counting your rows.
I got it. now what should I do so that I can record the user’s score in his first 4 attempts and put the obtained score in the database?
You can just update the values in each of those cells for that row.
Isn’t it possible that after the user plays, his score will automatically go to the database and he can view his score on the score board?
Automatically? Things don’t generally happen automatically in Thunkable. You’re the developer. You’re coding every action. So if you want the score to change in the database then you need to code that.
A simple algorithm for most programming languages/tools is:
If/While/When... (an event)
Do something (an action)
Without an event and an action, nothing is going to happen!
its not working i dont know why
maybe coz i am testing it in thunkable testing app is it right , if not pease help please
It worked the first time you run the code ? You reset the variable before test it again ?