Packageorg.flixel.system
Classpublic class FlxTile
InheritanceFlxTile Inheritance FlxObject Inheritance FlxBasic Inheritance Object



Public Properties
 PropertyDefined By
 Inheritedacceleration : FlxPoint
How fast the speed of this object is changing.
FlxObject
 Inheritedactive : Boolean
Controls whether update() is automatically called by FlxState/FlxGroup.
FlxBasic
 Inherited_ACTIVECOUNT : uint
[static]
FlxBasic
 Inheritedalive : Boolean
Useful state for many game objects - "dead" (!alive) vs alive.
FlxBasic
 InheritedallowCollisions : uint
Bit field of flags (use with UP, DOWN, LEFT, RIGHT, etc) indicating collision directions.
FlxObject
 Inheritedangle : Number
Set the angle of a sprite to rotate it.
FlxObject
 InheritedangularAcceleration : Number
How fast the spin speed should change.
FlxObject
 InheritedangularDrag : Number
Like drag but for spinning.
FlxObject
 InheritedangularVelocity : Number
This is how fast you want this sprite to spin.
FlxObject
  callback : Function
FlxTile
 Inheriteddrag : FlxPoint
This isn't drag exactly, more like deceleration that is only applied when acceleration is not affecting the sprite.
FlxObject
 Inheritedelasticity : Number
FlxObject
 Inheritedexists : Boolean
Controls whether update() and draw() are automatically called by FlxState/FlxGroup.
FlxBasic
 Inheritedflickering : Boolean
[read-only] Check to see if the object is still flickering.
FlxObject
 Inheritedhealth : Number
Handy for storing health percentage or armor points or whatever.
FlxObject
 Inheritedheight : Number
FlxObject
 InheritedID : int
IDs seem like they could be pretty useful, huh?
FlxBasic
 Inheritedimmovable : Boolean
Whether an object will move/alter position after a collision.
FlxObject
 Inheritedlast : FlxPoint
FlxObject
 Inheritedmass : Number
FlxObject
 InheritedmaxAngular : Number
Use in conjunction with angularAcceleration for fluid spin speed control.
FlxObject
 InheritedmaxVelocity : FlxPoint
If you are using acceleration, you can use maxVelocity with it to cap the speed automatically (very useful!).
FlxObject
 Inheritedmoves : Boolean
Set this to false if you want to skip the automatic motion/movement stuff (see updateMotion()).
FlxObject
 InheritedscrollFactor : FlxPoint
A point that can store numbers from 0 to 1 (for X and Y independently) that governs how much this object is affected by the camera subsystem.
FlxObject
 Inheritedsolid : Boolean
FlxObject
 Inheritedtouching : uint
Bit field of flags (use with UP, DOWN, LEFT, RIGHT, etc) indicating surface contacts and collision qualities.
FlxObject
 Inheritedvelocity : FlxPoint
The basic speed of this object.
FlxObject
 Inheritedvisible : Boolean
Controls whether draw() is automatically called by FlxState/FlxGroup.
FlxBasic
 Inherited_VISIBLECOUNT : uint
[static]
FlxBasic
 InheritedwasTouching : uint
FlxObject
 Inheritedwidth : Number
FlxObject
 Inheritedx : Number
FlxObject
 Inheritedy : Number
FlxObject
Protected Properties
 PropertyDefined By
 Inherited_flicker : Boolean
Internal helper used for retro-style flickering.
FlxObject
 Inherited_flickerTimer : Number
Internal helper used for retro-style flickering.
FlxObject
 Inherited_point : FlxPoint
This is just a pre-allocated x-y point container to be used however you like
FlxObject
 Inherited_rect : FlxRect
This is just a pre-allocated rectangle container to be used however you like
FlxObject
Public Methods
 MethodDefined By
  
FlxTile(Width:Number = 0, Height:Number = 0)
FlxTile
  
destroy():void
[override]
FlxTile
 Inherited
draw():void
Override this function to control how the object is drawn.
FlxBasic
 Inherited
flicker(Duration:Number = 1):void
Tells this object to flicker, retro-style.
FlxObject
 Inherited
FlxObject
 Inherited
getScreenXY(Point:FlxPoint = null, Camera:FlxCamera = null):FlxPoint
Call this function to figure out the on-screen position of the object.
FlxObject
 Inherited
isTouching(Direction:uint):Boolean
FlxObject
 Inherited
justTouched(Direction:uint):Boolean
FlxObject
 Inherited
kill():void
FlxBasic
 Inherited
onScreen(Camera:FlxCamera = null):Boolean
[override] Check and see if this object is currently on screen.
FlxObject
 Inherited
overlaps(Object:FlxObject):Boolean
Checks to see if some FlxObject overlaps this FlxObject object in world space.
FlxObject
 Inherited
overlapsPoint(X:Number, Y:Number, Camera:FlxCamera = null, PerPixel:Boolean = false):Boolean
Checks to see if a point in 2D world space overlaps this FlxObject object.
FlxObject
 Inherited
postUpdate():void
[override]
FlxObject
 Inherited
preUpdate():void
[override]
FlxObject
 Inherited
reset(X:Number, Y:Number):void
Handy function for reviving game objects.
FlxObject
 Inherited
revive():void
FlxBasic
 Inherited
separate(Object1:FlxObject, Object2:FlxObject):Boolean
[static]
FlxObject
 Inherited
separateX(Object1:FlxObject, Object2:FlxObject):Boolean
[static]
FlxObject
 Inherited
separateY(Object1:FlxObject, Object2:FlxObject):Boolean
[static]
FlxObject
 Inherited
toString():String
Convert object to readable string name.
FlxBasic
 Inherited
update():void
[override] Called by the main game loop, handles motion/physics and game logic
FlxObject
Protected Methods
 MethodDefined By
 Inherited
Internal function for updating the position and speed of this object.
FlxObject
Public Constants
 ConstantDefined By
 InheritedANY : uint
[static]
FlxObject
 InheritedCEILING : uint = 0x0100
[static]
FlxObject
 InheritedDOWN : uint = 0x1000
[static]
FlxObject
 InheritedFLOOR : uint = 0x1000
[static]
FlxObject
 InheritedLEFT : uint = 0x0001
[static]
FlxObject
 InheritedNONE : uint = 0
[static]
FlxObject
 InheritedOVERLAP_BIAS : Number = 4
[static]
FlxObject
 InheritedRIGHT : uint = 0x0010
[static]
FlxObject
 InheritedUP : uint = 0x0100
[static]
FlxObject
 InheritedWALL : uint
[static]
FlxObject
Protected Constants
 ConstantDefined By
 Inherited_pZero : FlxPoint
[static] A handy "empty point" object
FlxObject
Property Detail
callbackproperty
public var callback:Function

Constructor Detail
FlxTile()Constructor
public function FlxTile(Width:Number = 0, Height:Number = 0)



Parameters
Width:Number (default = 0)
 
Height:Number (default = 0)
Method Detail
destroy()method
override public function destroy():void