Thanks for the reply.
You say that doesn;t work, but what happens instead ?
Nothing happend on screen.
Maybe it is because Tween needs to call start()after interpolation
parameters are chosen :)
If i'm not wrong, in Godot documentation and various tutorials, start() is called with tween.interpolateproperty().
Here i'm using tweenproperty(), and it seems the method start() doesn't exist for it.
For exemple i tried this piece of code :
tween.tween_property(self.current_poly,"position:x",current_poly.position.x+200,morphing_speed)
and it worked perfectly without using start().
Also, this won't work if new polygon has different amount of points
than old one
The amout of points of the old shape and the new shape is identical.
I even tested on a polygon2d node with a fixed amount of 4 points and tried to update the position of its points:
tween.tween_property($Polygon2D,"polygon",new_polygon_dots,morphing_speed)
Result : same problem. Nothing happened.
Then i tried to tween the global position of this same polygon2D :
tween.tween_property($Polygon2D,"position:x",$Polygon2D.position.x+500,morphing_speed)
Result : it worked correctly !
So maybe it's the property "polygon" of polygon2D that can't be tweened ?
I'm at loss because i found nothing in the documentation, Godot Q&A, reddit and youtube.
So if you have another idea please let me know.