- Edited
cybereality
Thank you for your helpful answer.
It worked as expected and I implemented another type of word to test out the same concept.
However, since the instances' children get spawned quite fast and increment the "count" variables which store their
references, it would be difficult to access them in an efficient way (I would maybe have to write get_node("write_0")
,
get_node("write_1")
, get_node("write_2")
and so on.
So I thought about implementing an if statement to make sure some words wouldn't slip past the pressed key, i.e
if "hanzi" + str("count -3") was still here, first delete that one with queue_free() first,
then "hanzi" + str("count -2"), queue_free(),
then the most recent one with "hanzi_" + str("count -1")
So I tried this :
It doesn't work, and I'm sure I'm missing something obvious, but I can't wrap my head around this bit yet.
Thanks again.