Hello,
is here some way to "rebuild" visual part of programm?
I need to create several similar sprites, what I do this way:
func _sprite():
for i in range (0,count):
sprite = Sprite.new()
add_child(sprite,false)
sprite.set_some_properties...
But in the second part of programm I need to rebuild scene with another count of sprites. I can do it, but when I simlply call the function _sprite again, it only creates new sprites and the previous sprites remains rendered. Is here some way to clean the scene before?
Thank you.