class flixel.addons.display.shapes.FlxShapeLine extends FlxShape
Available on all platforms
Sub classes | ||||
![]() | FlxShapeLightning |
|
Instance Fields
function new(X:Float, Y:Float, a:FlxPoint, b:FlxPoint, LineStyle_:LineStyle):Void
Creates a FlxSprite with a line drawn on top of it. X/Y is where the SPRITE is, and points a&b are RELATIVE to this object's origin. * Points with negative values will not draw correctly since they'll appear beyond the sprite's canvas. * *
X | x position of the canvas * |
Y | y position of the canvas * |
a | first point in the line (relative to the sprite's origin) * |
b | second point in the line (relative to the sprite's origin) * |
LineStyle_ |