Godot Version
V4.7
Question
I want to automatize this with a loop for:
histoire_actu = banque_histoire_tempo.pop_front()
texte_carte_1.text = histoire_actu[numero_tirage]
histoire_actu = banque_histoire_tempo.pop_front()
texte_carte_2.text = histoire_actu[numero_tirage]
histoire_actu = banque_histoire_tempo.pop_front()
texte_carte_3.text = histoire_actu[numero_tirage]
I made this but it’s not working and it say “Invalid assignment of property or key ‘text’ with value of type ‘String’ on a base object of type ‘String’.”. I think it’s because my value “carte_actu” is a var and not a label, but how can I do it? It must have a way?
Sorry, I’m new and it’s maybe simple (or not possible) but I don’t know how to search for this issue.
Thanks you!!
