Optional
Beta
charSets 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
.
Optional
collidesSet to false, if character should not collide (neither with the tilemap, nor with other characters). For more control, pass a CollisionConfig object.
true
Optional
facingSets the direction the character is initially facing.
{@link Direction.DOWN}
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.
Optional
labelsSets labels for the character. They can be used to filter and logically group characters.
[]
Optional
numberThe 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.
Optional
speedThe speed of a player in tiles per second.
4
Optional
startStart tile position of the player.
{x: 0, y:0}
Optional
tileHeight of the character in tiles. This allows to specify character that span more than just one tile.
1
Optional
tileWith of the character in tiles. This allows to specify character that span more than just one tile.
1
Configuration object used to initialize a new character in GridEngine.