Author Topic: [Guide] How to create and add an avatar  (Read 420 times)

0 Members and 1 Guest are viewing this topic.

BlushyFace

  • Administrator
  • Newbie
  • *****
  • Posts: 27
[Guide] How to create and add an avatar
« on: July 27, 2019, 10:03:49 AM »
For avatar to be usable they need to meet the following requirements:
Avatar sprite sheets can be any size but recommended is 16px / 32px / 64px per frame and the sprite sheet file must be named the same as the definition file that contains the specifics of each action. If there are various alternate variations for that sprite sheet you can specify that in "variations=".

Example when creating a new avatar called "BlushyFace"

blushyface.png


Definition file  blushyface.txt
name=BlushyFace
imagefile=blushyface
variations=
defaultaction=walk

[idle]
startX=64
startY=64
sizeX=64
sizeY=64
frames=1
speedmin=0
speedmax=0 
scale=1
[/idle]

[walk]
startX=64
startY=128
sizeX=64
sizeY=64
frames=8
speedmin=1
speedmax=2 
scale=0.75
enabled=false
[/walk]

[run]
startX=64
startY=192
sizeX=64
sizeY=64
frames=5
speedmin=2 
speedmax=3
scale=0.75
enabled=true
[/run]

[sit]
startX=64
startY=256
sizeX=64
sizeY=64
frames=4
speedmin=0 
speedmax=0
scale=1
enabled=false
[/sit]
« Last Edit: August 03, 2019, 02:27:38 PM by BlushyFace »