Changes

Jump to navigation Jump to search
1,333 bytes added ,  Monday at 00:01
Line 323: Line 323:  
|}
 
|}
    +
==Spritesheet layout==
 +
===Explanation===
 +
Each farm animal's spritesheet must have exactly 4 columns. The sprite size is expected to be 32x32.
 +
 +
The expected rows are:
 +
# move down;
 +
# move right;
 +
# move up;
 +
# move left
 +
# unique animations 1;
 +
# unique animations 2;
 +
# unique animations 3;
 +
# sleep and unique animations 4;
 +
# unique animations 5
 +
 +
For example, the default layout is:
 +
{| class="wikitable"
 +
|-
 +
| 0 (move down 1)
 +
| 1 (move down 2)
 +
| 2 (move down 3)
 +
| 3 (move down 4)
 +
|-
 +
| 4 (move right 1)
 +
| 5 (move right 2)
 +
| 6 (move right 3)
 +
| 7 (move right 4)
 +
|-
 +
| 8 (move up 1)
 +
| 9 (move up 2)
 +
| 10 (move up 3)
 +
| 11 (move up 4)
 +
|-
 +
| 12 (move left 1)
 +
| 13 (move left 2)
 +
| 14 (move left 3)
 +
| 15 (move left 4)
 +
|-
 +
| 16 (unique)
 +
| 17 (unique)
 +
| 18 (unique)
 +
| 19 (unique)
 +
|-
 +
| 20 (unique)
 +
| 21 (unique)
 +
| 22 (unique)
 +
| 23 (unique)
 +
|-
 +
| 24 (unique)
 +
| 25 (unique)
 +
| 26 (unique)
 +
| 27 (unique)
 +
|-
 +
| 28 (sleep 1)
 +
| 29 (sleep 2)
 +
| 30 (unique)
 +
| 31 (unique)
 +
|-
 +
| 32 (unique)
 +
| 33 (unique)
 +
| 34 (unique)
 +
| 35 (unique)
 +
|}
 +
 +
The rows for moving down, right, up, and left will be used when copy/pasting the Walk behavior from the cat, dog, or turtle. If you don't use that behavior, you can actually put things that aren't moving up, down, or left there. However, in the absence of any defined Behavior, the pet will still use frames 28 and 29 for sleeping.
    
[[Category:Modding]]
 
[[Category:Modding]]
2

edits

Navigation menu