Change a polygon size

I need help to change a polygon size (width & height) with a button. It is not as easy as a square that you only increase the value in x or y. Polygon objects have vertex values. I would like to know if there is a way to avoid removing and recreating the polygon.

Thanks in advance
DoDi

If you have defined the polygon’s vertices so that they are positioned relative from the shape’s centre, then you might get away with just scaling the display object.

1 Like

Thank you! I had completely forgotten that I can scale … 16 hours programming … I need to eat something :joy: