Loads a scene from XML file. Scenes contain layers of entities (custom FlxSprite), backgrounds, tilemaps, constants, UI and more.
Any questions tweet me @AndreiRegiani
Constructor
Variables
Methods
const(id:String):Dynamic
Gets a specific constant by ID.
Parameters:
id | Constant name. |
---|
Returns:
Bool, Int, Float or String associated with the ID.
loadBackgrounds(?container:FlxTypedGroup<Dynamic>):Void
Add backgrounds to state.
Parameters:
container | Add backgrounds to this FlxTypedGroup (layer). |
---|
loadTilemap(?container:FlxTypedGroup<Dynamic>):Void
Add tilemap to state.
Parameters:
container | Add tilemap to this FlxTypedGroup (layer). |
---|
object(id:String):Dynamic
Gets a specific object by ID.
Parameters:
id | Constant name. |
---|
Returns:
The object associated with the ID.
spawn(?container:FlxTypedGroup<Dynamic>, ?layerId:String):Void
Instantiate objects to state.
Parameters:
container | Add objects to this FlxTypedGroup (layer). |
---|---|
layerId | Add objects only from this layer. |