This addon provides 2 new node types for 2d platformer-style games (both inherit from StaticBody2D):
- ThinPlatform: this object is defined by a curve and provides a StaticBody2d that "follows" that curve. It is drawn using a texture that is rendered along that curve. It can be used to create thin platforms.
- ThickPlatform: this object is defined by a closed curve and provides a StaticBody2d inside that curve. It is drawn using a "fill" texture and "border" textures. There are 2 border textures that are used depending on the edge angle.
- MovingPlatform is a boolean parameter that will automatically update the platform's constant linear velocity when the platform is moving.
- Curve is the curve that defines the platform's shape (make sure to make it unique when copying a platform or the curve will be shared)
- Bake Interval is the distance between 2 points in the rendered platform. Keep this as high as possible (depending on the platform's shape) to improve rendering performance
- Left Texture is not implemented yet.
- Mid Texture is the texture used to draw the platform. It must have the repeat attribute.
- Right Texture is not implemented yet.
- Thickness is the thickness of the platform.
- Position is the position of the curve in the platform's thickness and can be used to adjust the positions of the texture and the StaticBody2D. Set it to 1 when the texture has no perspective effect (the world is strictly viewed from the side) and somewhere between 0 and 1 when the top of platforms is drawn.
- Fill Texture is the texture used to fill the platform. It must have the repeat attribute.
- Border Texture 1 is a texture used to draw the edge of the platform. It must have the repeat attribute.
- Border Texture 2 is a texture used to draw the edge of the platform. It must have the repeat attribute. Please don't use this, multiple border textures need to be rewritten.
- Border Thickness is the thickness of the border texture
- Border Position is the position of the curve in the platform's border and can be used to adjust the positions of the texture and the StaticBody2D. Set it to 1 when the texture has no perspective effect (the world is strictly viewed from the side) and somewhere between 0 and 1 whe the top of platforms is drawn.
- Angle is the threshold angle used to select between border textures. Please don't use this, multiple border textures need to be rewritten.
ThinPlatform and ThickPlatform exported variables (except the common ones) define how the platforms look. They can be applied using the OptionButton in the 2D view's toolbar and named (and added to the list) using the text entry. I know it is counter-intuitive and will rework it later. :p