Name | Type | Description |
---|---|---|
json |
Object | optional Json object describing the object state |
Properties:
Name | Type | Description |
---|---|---|
id |
number | state ID |
graphicID |
number | ID of the graphic texture |
graphicKind |
MapEditorSubSelectionKind | The kind of graphic |
rectTileset |
Array.<number> | Rect for tileset in the graphic |
indexX |
number | Index x in the graphic |
indexY |
number | Index y in the graphic |
objectMovingKind |
ObjectMovingKind | The object moving kind |
route |
SystemObjectReaction | An object reaction for the route moving |
speedID |
number | The speed ID |
frequencyID |
number | The frequencyID |
moveAnimation |
boolean | Indicate if the abject is animated when moving |
stopAnimation |
boolean | Indicate if the abject is animated when not moving |
climbAnimation |
boolean | Indicate if the abject is animated when climbing |
directionFix |
boolean | Indicate if the abject is looking the object sending reaction to him |
through |
boolean | Indicate if the abject can be passed through |
setWithAnimation |
boolean | Indicate if the abject orientation is updated according to the camera |
pixelOffset |
boolean | Indicate if there is a pixel offset for impair frames when moving |
keepPosition |
boolean | Indicate if the object should keep the position after moving (after changing map / save) |
detection |
EventCommand | The event command used for detection |
Methods
-
Read the JSON associated to the object state
Name Type Description json
Object Json object describing the object state -
Create a new instance of the system object state
Returns:
Type Description Object