class flixel.addons.display.shapes.FlxShapeCross extends FlxShape

Available on all platforms

A cross shape drawn onto a FlxSprite. Useful for tactics games and stuff!

Instance Fields

var intersectionH:Float

Sets where the two arms intersect horizontally. * value (0-1): 0 makes a |-, 1 makes a -|, 0.5 makes a +; (if intersectionV is 0.5)

var intersectionV:Float

Sets where the two arms intersect vertically. * value (0-1): 0 makes a T, 1 makes inverted T, 0.5 makes a +; (if intersectionH is 0.5)

function new(X:Float, Y:Float, HLength:Float, HSize:Float, VLength:Float, VSize:Float, IntersectionH:Float, IntersectionV:Float, LineStyle_:LineStyle, FillStyle_:FillStyle):Void

function destroy():Void

function drawSpecificShape(?matrix:Matrix = null):Void