In the Display+ extension for the cyberpi, it’s possible to set a sprite to a variable. It should also be possible to do this to a specific item in a list:
However this fails on line 8 of the generated python.
It is possible to fix this using the python editor, but it would be good to fix this in the code generated by the blocks. Adding an “insert” allows it to work.
Fruit_list = []
Fruit_list.insert(1 - 1, 0)
Fruit_list[1 - 1] = cyberpi.sprite()
Is it possible to add this line in the code generated for initialize variables? It would make it possible to essentially generate as many sprites as we’d like, without needing to have a different variable for every instance.