Docs: mention that crankIndicator:update() needs to be called after sprite.update()

I think the docs should mention that crankIndicator:update() needs to be called after sprite.update()

Otherwise, the crank indicator will not be visible (it will be obscured)

So not this:

playdate.ui.crankIndicator:update()
gfx.sprite.update()

But this:

gfx.sprite.update()
playdate.ui.crankIndicator:update()
5 Likes

Unless you have your background color set to kColorClear, of course.

But yes, you're right, we should address using it alongside sprites in the docs. I think maybe they should mention that it's drawn as an image, so the same rules as calling image:draw(x, y) apply.

1 Like