SymbolParameters defines and separates from what a FlxElement considered as a Shape and a FlxElement considered as a Symbol.
It adds metadata information on the symbol's behaviour, such as:
- Type, this can be considered as:
- Type of `Symbol`.
- Type of `Looping`.
Constructor
new(?name:String, instance:String = "", type:SymbolT = Graphic, loop:Loop = Loop)
Creates a new SymbolParameters instance.
Parameters:
name | The name referencing an existing symbol. |
|---|---|
instance | The name of this instance. |
type | The Type of Symbol it will behave like. |
loop | The type of looping it will use. WARNING: This can be ignored if |
Variables
loop:Loop
The type of loop that the symbol is been set to.
There are three types (excluding the reversed options):
- Loop
- Play Once
- Single Frame.
WARNING: if type is NOT set to Graphic, this option will not let you modify it.
reverse:Bool
Whether the looping animation is reversed or not.
It is ignored when loop is set to SingleFrame.