-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,16 +8,16 @@ Though LDtk does not support animated tiles, the importer has some support for i | |
- Then you can put information in to tell the importer how the tile should animate. | ||
- You type in a keyword, followed by one or more values separated by commas. | ||
- There should only be one keyword per line. | ||
- All keywords are optional. If any are not used, then the default values in the table below are used. But to do any animation, `animatedSprites` is required. | ||
![AnimatedTilesCustomDataExample](../../images/img_LDtk_TileAnimationData.png) | ||
|
||
| Keyword | Type | Default | Description | Example | | ||
|------------------------|---------|---------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------| | ||
| `animatedSprites` | `int` | (empty) | The tile ID frames to use in the animation. | `animatedSprites 0,1,2,3,3,3,2,1` | | ||
| `animationSpeed` | `float` | 1 | The animation speed.<br/>Put one number for a fixed value.<br/>Put two numbers for a random range. | `animationSpeed 2`<br/>`animationSpeed 1.5, 3` | | ||
| `animationSpeed` | `float` | 1 | The animation speed in frames per second.<br/>Put one number for a fixed value.<br/>Put two numbers for a random range. | `animationSpeed 2`<br/>`animationSpeed 1.5, 3` | | ||
| `animationStartTime` | `float` | 0 | The initial animation time of a tile.<br/>Put one number for a fixed value.<br/>Put two numbers for a random range. | `animationStartTime 0.5`<br/>`animationStartTime 0, 2.5` | | ||
| `animationStartFrame` | `int` | 0 | The initial animation frame of a tile.<br/>Put one number for a fixed value.<br/>Put two numbers for a random range.<br/>This overrides `animationStartTime`. | `animationStartFrame 2`<br/>`animationStartFrame 0, 3` | | ||
|
||
- All keywords are optional. If one is left unused, the value will be it's default displayed in the table below.and have a default value if unused, but `animatedSprites` is required to do any animation. | ||
- The naming convention is based on Unity's [TileAnimationData](https://docs.unity3d.com/ScriptReference/Tilemaps.TileAnimationData.html) and [AnimatedTile](https://docs.unity3d.com/Packages/[email protected]/manual/AnimatedTile.html). | ||
|
||
## Disclaimer | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -80,7 +80,8 @@ <h2 id="setup">Setup</h2> | |
<li>Click on a tile and a text dialogue will appear, where you can add text.</li> | ||
<li>Then you can put information in to tell the importer how the tile should animate.</li> | ||
<li>You type in a keyword, followed by one or more values separated by commas.</li> | ||
<li>There should only be one keyword per line.<br> | ||
<li>There should only be one keyword per line.</li> | ||
<li>All keywords are optional. If any are not used, then the default values in the table below are used. But to do any animation, <code>animatedSprites</code> is required.<br> | ||
<img src="../../images/img_LDtk_TileAnimationData.png" alt="AnimatedTilesCustomDataExample"></li> | ||
</ul> | ||
<table> | ||
|
@@ -105,7 +106,7 @@ <h2 id="setup">Setup</h2> | |
<td><code>animationSpeed</code></td> | ||
<td><code>float</code></td> | ||
<td>1</td> | ||
<td>The animation speed.<br>Put one number for a fixed value.<br>Put two numbers for a random range.</td> | ||
<td>The animation speed in frames per second.<br>Put one number for a fixed value.<br>Put two numbers for a random range.</td> | ||
<td><code>animationSpeed 2</code><br><code>animationSpeed 1.5, 3</code></td> | ||
</tr> | ||
<tr> | ||
|
@@ -125,7 +126,6 @@ <h2 id="setup">Setup</h2> | |
</tbody> | ||
</table> | ||
<ul> | ||
<li>All keywords are optional. If one is left unused, the value will be it's default displayed in the table below.and have a default value if unused, but <code>animatedSprites</code> is required to do any animation.</li> | ||
<li>The naming convention is based on Unity's <a href="https://docs.unity3d.com/ScriptReference/Tilemaps.TileAnimationData.html">TileAnimationData</a> and <a href="https://docs.unity3d.com/Packages/[email protected]/manual/AnimatedTile.html">AnimatedTile</a>.</li> | ||
</ul> | ||
<h2 id="disclaimer">Disclaimer</h2> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters