The Character With Sprites and XML:

XML:
<?xml version='1.0' encoding='utf-8'?>
<TextureAtlas imagePath="Rappio.png">
<SubTexture name="Idle0000" x="0" y="0" width="293" height="376" frameX="-196" frameY="-148" frameWidth="684" frameHeight="522" />
<SubTexture name="Idle0001" x="293" y="0" width="274" height="383" frameX="-206" frameY="-141" frameWidth="684" frameHeight="522" />
<SubTexture name="Idle0002" x="567" y="0" width="263" height="397" frameX="-211" frameY="-127" frameWidth="684" frameHeight="522" />
<SubTexture name="Idle0003" x="830" y="0" width="241" height="413" frameX="-222" frameY="-111" frameWidth="684" frameHeight="522" />
<SubTexture name="Idle0004" x="1071" y="0" width="218" height="430" frameX="-234" frameY="-94" frameWidth="684" frameHeight="522" />
<SubTexture name="Left0000" x="0" y="430" width="295" height="436" frameX="-144" frameY="-88" frameWidth="684" frameHeight="522" />
<SubTexture name="Left0001" x="295" y="430" width="279" height="438" frameX="-193" frameY="-86" frameWidth="684" frameHeight="522" />
<SubTexture name="Left0002" x="574" y="430" width="274" height="436" frameX="-218" frameY="-88" frameWidth="684" frameHeight="522" />
<SubTexture name="Down0000" x="848" y="430" width="369" height="274" frameX="-158" frameY="-250" frameWidth="684" frameHeight="522" />
<SubTexture name="Down0001" x="1217" y="430" width="291" height="366" frameX="-197" frameY="-158" frameWidth="684" frameHeight="522" />
<SubTexture name="Down0002" x="0" y="868" width="228" height="427" frameX="-229" frameY="-97" frameWidth="684" frameHeight="522" />
<SubTexture name="Up0000" x="228" y="868" width="218" height="515" frameX="-252" frameY="-9" frameWidth="684" frameHeight="522" />
<SubTexture name="Up0001" x="446" y="868" width="258" height="476" frameX="-234" frameY="-48" frameWidth="684" frameHeight="522" />
<SubTexture name="Up0002" x="704" y="868" width="281" height="439" frameX="-222" frameY="-85" frameWidth="684" frameHeight="522" />
<SubTexture name="Right0000" x="985" y="868" width="355" height="439" frameX="-222" frameY="-85" frameWidth="684" frameHeight="522" />
<SubTexture name="Right0001" x="0" y="1383" width="276" height="432" frameX="-218" frameY="-92" frameWidth="684" frameHeight="522" />
<SubTexture name="Right0002" x="276" y="1383" width="256" height="430" frameX="-215" frameY="-94" frameWidth="684" frameHeight="522" />
<SubTexture name="LeftMiss0000" x="532" y="1383" width="483" height="464" frameX="-101" frameY="-60" frameWidth="684" frameHeight="522" />
<SubTexture name="DownMiss0000" x="1015" y="1383" width="315" height="289" frameX="-185" frameY="-235" frameWidth="684" frameHeight="522" />
<SubTexture name="UpMiss0000" x="1330" y="1383" width="355" height="519" frameX="-166" frameY="-5" frameWidth="684" frameHeight="522" />
<SubTexture name="RightMiss0000" x="0" y="1902" width="684" height="524" frameX="0" frameY="0" frameWidth="684" frameHeight="522" />
</TextureAtlas>
JSON 8a lil messed up):
{ "animations": [ { "offsets": [ 0, 0 ], "indices": [], "fps": 16, "anim": "idle", "loop": false, "name": "Idle" }, { "offsets": [ 0, 0 ], "indices": [ 0, 1, 2 ], "fps": 16, "anim": "singLEFT", "loop": false, "name": "Left" }, { "offsets": [ 0, 0 ], "indices": [ 0, 1, 2 ], "fps": 16, "anim": "singDOWN", "loop": false, "name": "Down" }, { "offsets": [ 0, 0 ], "indices": [ 0, 1, 2 ], "fps": 16, "anim": "singUP", "loop": false, "name": "Up" }, { "offsets": [ 0, 0 ], "indices": [ 0, 1, 2 ], "fps": 16, "anim": "singRIGHT", "loop": false, "name": "Right" }, { "offsets": [ 0, 0 ], "indices": [ 0, 0, 0, 0 ], "fps": 16, "anim": "singLEFTmiss", "loop": false, "name": "LeftMiss" }, { "offsets": [ 0, 0 ], "indices": [ 0, 0, 0, 0 ], "fps": 16, "anim": "singDOWNmiss", "loop": false, "name": "DownMiss" }, { "offsets": [ 0, 0 ], "indices": [ 0, 0, 0, 0 ], "fps": 16, "anim": "singUPmiss", "loop": false, "name": "UpMiss" }, { "offsets": [ 0, 0 ], "indices": [ 0, 0, 0, 0 ], "fps": 16, "anim": "singRIGHTmiss", "loop": false, "name": "RightMiss" } ], "no_antialiasing": true, "image": "characters/Rappio", "position": [ 20, 210 ], "healthicon": "rapper", "flip_x": true, "healthbar_colors": [ 255, 0, 0 ], "camera_position": [ 100, 90 ], "sing_duration": 4.00000000000001, "scale": 1 }

















3 comments