class flixel.addons.weapon.FlxBullet extends FlxSprite

Available on all platforms

@link http://www.photonstorm.com * @link http://www.haxeflixel.com * @author Richard Davey / Photon Storm * @author Touch added by Impaler / Beeblerox

Instance Fields

function new(Weapon:FlxWeapon, WeaponID:Int):Void

function addAnimation(Name:String, Frames:Array<Int>, ?FrameRate:Int = 0, ?Looped:Bool = true):Void

Adds a new animation to the sprite. * *

Name

What this animation should be called (e.g. "run"). *

Frames

An array of numbers indicating what frames to play in what order (e.g. 1, 2, 3). *

FrameRate

The speed in frames per second that the animation should play at (e.g. 40 fps). *

Looped

Whether or not the animation is looped or just plays once.

function fire(FromX:Float, FromY:Float, VelX:Float, VelY:Float):Void

function fireAtMouse(FromX:Float, FromY:Float, Speed:Int, ?RotateBulletTowards:Bool = true):Void

function fireAtPosition(FromX:Float, FromY:Float, ToX:Float, ToY:Float, Speed:Int):Void

function fireAtTarget(FromX:Float, FromY:Float, Target:FlxSprite, Speed:Int):Void

function fireAtTouch(FromX:Float, FromY:Float, Touch:FlxTouch, Speed:Int, ?RotateBulletTowards:Bool = true):Void

function fireFromAngle(FromX:Float, FromY:Float, FireAngle:Int, Speed:Int):Void

function update():Void