Very strange bug with frames

hi,

When i use this spreadsheet 110 by 110 px for each frame :
do

    this.load.spritesheet("do", "img/do.png", { frameWidth: 110, frameHeight: 110, endFrame: 6 })

    ...
    this.add.sprite(0,0,"do").setFrame(6)

The result is that the frame 6 is invisible, however in my png the frame 6 exist, it’s the X ??!!.

i made a codepen about that and i reproduce this (you must scroll down to see the result on the preview) :
https://codepen.io/ogames/pen/oKGwjO

Is it a known bug ?

Thanks for your support.

You’re using frames 0 through 5, so I think you want { endFrame: 5 }.

Hi,
I don’t understand…
what i want to see, it’s my 6 case
06088beddebaf6c2340d3a0b21bf63e2e0aabbb9
So normally its the case number 6 so i must put endframe : 6 to see this.
I have edited my codepen with endframe : 5 and i see my first case.
https://codepen.io/ogames/pen/oKGwjO
Try to see the case number 6 with the X in my codepen,
you will not succeed.
By me, it’s a bug…?

Sorry, I misunderstood.

At 110 × 110 the image should be 770 wide, but it’s 769.

1 Like

Wonderful i never find it myself