Playdate.graphics.animation.loop.interval doesn't exist

,

edit: ‘shouldLoop’ and ‘frame’ seem to also be incorrect/missing(?)

‘.delay’ seems to be there, though:

Dumping current loop:
{
[_delay] = 100,
[_paused] = false,
[_step] = 1,
[currentFrame] = 1,
[endFrame] = 4,
[imageTable] = playdate.graphics.imagetable: 0000024450E96FE8,
[loop] = false,
[startFrame] = 1,
[t] = 10364,
[valid] = true,
}

Thanks for pointing this out! We’ll look into this…

1 Like

You were right, and the docs were wrong — in two ways!

  1. The accessor is named delay, not interval.
  2. It is not optional in the function signature, even though the docs say it is. (You can pass in nil and get the default value of 100ms).

Your other point — that shouldLoop and frame are incorrect — seems not to be the case: they are present and can be set/get.

Thanks for noticing this issue! This will be fixed in the next OS release. See the updated docs below:

1 Like