Struggling to simplify things with lists

Again you are wrong? My question is, Why do you use Add items to the list?
image

Based on your blocks it sems you want to set visibility for single image component..

do this
In the above event set the global SpentUpgrades to Books Visible
and store this variable into tinydb (actually directly you can store into tinydb, No need of this variable)

In screen init
dont use Set image block instead directly use the set name of the image component visible to call tinydb value

then in

I am going to have several upgrades so I want a running list of all the images. What you have said will work but I am trying to save myself time and effort later since I will have a ton of them.

there is no relevant blocks for it. thats why you are getting this.. wait let me show you some example

I suggest you simplify, work on each part of the workflow separately, then combine them.

image

I meant like this

I'm trying to guess your problem domain from the nouns you use:

  • cookies
  • upgrades
  • books

Are you trying to code an RPG (Role Playing Game) where the player can customize his avatar by purchasing upgrades with cookies and accumulating skills through acquisition of books?

Something like that

Ill try that in a sec


It was so promising.
image
It is so close to success.
This may be the last hurdle between me and a working saving system.

Your value under tag 'Knuckles' is not a list of numbers.

From the error message, it was a list of dead component names.

Indexes have to be numbers.

They may be asleep but I wonder what is in their TinyDB. I have component names which isn't working for obvious reasons. Perhaps I could have an upgrade id system?

You need to map text names to your components if you want to save component names to TinyDB.

Here is an example using Sprites and JSON ...