i want to draw custom shapes use them as platforms in my game.
i tried using a StaticBody2D node for this, and i had no problem getting it to draw the shapes, but i got stuck on setting the collision shape, all the threads i could find suggested using a Polygon2D with the shape i want and adding it using the "add_shape" function,
but i get this error:
Invalid call. Nonexistent function 'add_shape' in base 'StaticBody2D (StaticBody2D.gd)'.
what am i doing wrong? should i use a different base?
thanks a lot, im a newcomer just started today :)