I hv been using the spritesheet from Universal LPC https://sanderfrenken.github.io/Universal-LPC-Spritesheet-Character-Generator/#?body=Body_color_light&head=Human_male_light
Everything is working fine when it was all 64x64 but when I added a weapon ( e.g. longsword ), it appended many 128x128 images at the bottom of the spritesheet and mess up the animations…
How to I fix this ??
Without weapons ( all 64x64 ) - all working
With weapons ( mix of 64px and 128px ) - not working cos of mixed resolution…
I usually just use the walking anims like below … but is was broken when the attack sprites was appended …
this.anims.create({
key:'gen-up',
frames:this.anims.generateFrameNumbers('gen',
{ start:105, end:112 }),
frameRate:5,
repeat:-1
});
this.anims.create({
key:'gen-left',
frames:this.anims.generateFrameNumbers('gen',
{ start:118, end:125 }),
frameRate:5,
repeat:-1
});
this.anims.create({
key:'gen-down',
frames:this.anims.generateFrameNumbers('gen',
{ start:131, end:138 }),
frameRate:5,
repeat:-1
});
this.anims.create({
key:'gen-right',
frames:this.anims.generateFrameNumbers('gen',
{ start:144, end:151 }),
frameRate:5,
repeat:-1
});