Adjusts the position of the battleback
Get the autotile type the player is standing on
Name | Type | Description |
---|
z | number | The z index of the tile to check |
Returns:
Type | Description |
---|
number | The number corresponding to the autotile type |
Get the battleback1 bitmap
Returns:
Type | Description |
---|
Bitmap | The battleback1 bitmap |
Get the name of the battleback1 bitmap
Returns:
Type | Description |
---|
string | The name of the battleback1 bitmap |
Get the battleback2 bitmap
Returns:
Type | Description |
---|
Bitmap | The battleback2 bitmap |
Get the name of the battleback2 bitmap
Returns:
Type | Description |
---|
string | The name of the battleback2 bitmap |
defaultBattleback1Name()string
Get the default name of the battleback1 bitmap if no other battleback1 is found
Returns:
Type | Description |
---|
string | The name of the battleback1 bitmap |
defaultBattleback2Name()string
Get the default name of the battleback2 bitmap if no other battleback2 is found
Returns:
Type | Description |
---|
string | The name of the battleback2 bitmap |
Destroys the tiling sprite
Initializes the tiling sprite
Name | Type | Description |
---|
bitmap | Bitmap | The image for the tiling sprite |
Sets the x, y, width, and height of the tiling sprite
Name | Type | Description |
---|
x | number | The x coordinate of the tiling sprite |
y | number | The y coordinate of the tiling sprite |
width | number | The width of the tiling sprite |
height | number | The height of the tiling sprite |
normalBattleback1Name()string
Get the name of the battleback1 bitmap if the map is a normal map
Returns:
Type | Description |
---|
string | The name of the battleback1 bitmap |
normalBattleback2Name()string
Get the name of the battleback2 bitmap if the map is a normal map
Returns:
Type | Description |
---|
string | The name of the battleback2 bitmap |
overworldBattleback1Name()string
Get the name of the battleback1 bitmap if the map is the overworld
Returns:
Type | Description |
---|
string | The name of the battleback1 bitmap |
overworldBattleback2Name()string
Get the name of the battleback2 bitmap if the map is the overworld
Returns:
Type | Description |
---|
string | The name of the battleback2 bitmap |
Specifies the region of the image that the tiling sprite will use
Name | Type | Description |
---|
x | number | The x coordinate of the frame |
y | number | The y coordinate of the frame |
width | number | The width of the frame |
height | number | The height of the frame |
shipBattleback1Name()string
Get the name of the battleback1 bitmap if the player is in the ship
Returns:
Type | Description |
---|
string | The name of the battleback1 bitmap |
shipBattleback2Name()string
Get the name of the battleback2 bitmap if the player is in the ship
Returns:
Type | Description |
---|
string | The name of the battleback2 bitmap |
terrainBattleback1Name(type)string | null
Get the name of the battleback1 bitmap by terrain type
Name | Type | Description |
---|
type | number | The autotile type of terrain the player is currently on |
Returns:
Type | Description |
---|
string|null | The name of the battleback1 bitmap. Can be null if no matching type found |
terrainBattleback2Name(type)string | undefined
Get the name of the battleback2 bitmap by terrain type
Name | Type | Description |
---|
type | number | The autotile type of terrain the player is currently on |
Returns:
Type | Description |
---|
string|undefined | The name of the battleback2 bitmap. Can be undefined if no matching type found |
Updates the tiling sprite for each frame
Updates the transform on all children of this container for rendering