Optional BetacharSets the
character layer
of the character. If omitted the lowest character layer of the tilemap is
taken. If there are no character layers in the tilemap, it will get the
char layer undefined.
OptionalcollidesSet to false, if character should not collide (neither with the tilemap, nor with other characters). For more control, pass a CollisionConfig object.
OptionalfacingSets the direction the character is initially facing.
A unique identifier for the character on the map. If you provice two characters with the same id, the last one will override the previous one.
OptionallabelsSets labels for the character. They can be used to filter and logically group characters.
OptionalnumberThe possible number of directions for moving a character. This setting can be used to override the global setting in the GridEngine configuration for specific characters.
OptionalspeedThe speed of a player in tiles per second.
OptionalstartStart tile position of the player.
OptionaltileHeight of the character in tiles. This allows to specify character that span more than just one tile.
OptionaltileWith of the character in tiles. This allows to specify character that span more than just one tile.
Configuration object used to initialize a new character in GridEngine.