Commit 84e9842
committed
CharacterSpriteBehavior: Fallback to idle when walk is not available
When the SpriteFrames animation doesn't have an animation named "walk", use its
"idle" animation for walking. This makes the modding easier, since a single
animation is now needed for start testing a SpriteFrames in a character with any
of the walk behaviors. We also use "idle" at double speed for running.
And also, when a character is made of multiple parts, some parts can stay in the
"idle" animation. Meaning there are less parts to draw.1 parent bc625a2 commit 84e9842
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | | - | |
| 62 | + | |
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| |||
0 commit comments