Commit 011d4ee
committed
CharacterSpriteBehavior: Reset frames when back to idle
The townies "idle" has a subtle up and down animation.
For a character made of parts, since the last commit one part (like the head)
may keep playing "idle" while another (like the legs) may play "walk". But when
the character is back to idle, all parts should be set in sync again. Otherwise,
the head may go up when the legs go down, making a funny but not desired (for
now) dance.1 parent 84e9842 commit 011d4ee
1 file changed
Lines changed: 5 additions & 1 deletion
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| 66 | + | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
| |||
0 commit comments