I'm trying to get started with App Inventor, but there are still a few things I can't quite figure out.
I have a list of markers on a map that I want to compare with marker titles stored in TinyDB (these represent the markers that have already been completed).
When a marker is clicked, I set actualMarker using the AnyMarker.Click event.
Then I store the title of that marker as a tag in TinyDB.
On Screen.Initialize, I run a procedure that loops through all the markers and checks if their titles exist in TinyDB. If so, I make those markers invisible.
I need to save the marker state at a different point in the app — specifically right after the correct answer is clicked and the riddle is completed.
At that point, the corresponding marker should disappear and stay hidden, even after switching screens or restarting the app.
Can you confirm that my blocks will do what you asked for first in your first post. Then we can begin to look at what it is you want to do next...
We may have to take a step back even further, there is some weird logic going on: to be able to click a marker, it must be visible, from what you say you want to make markers visible after they have been clicked...
You might need to write out the user's workflow, step by step, to be clear...
I still want the same effect as in the beginning:
When the user clicks on a marker, a riddle opens. Once the riddle is answered correctly, that exact marker — the one linked to the riddle — should be hidden, so it can’t be used again.
The hiding is done inside a Clock event because I needed a 1-second delay to show the correct answer button in green before continuing.
I hope this makes the structure from earlier a bit clearer!