Crank Indicator persisting

How do I get the crank indicator to disappear?

function playdate.update()
    if (pd.isCrankDocked()) then
        ui.crankIndicator:draw(0,0)
    else

    end
end

Since you aren't changing the screen while the crank is undocked, the last image when the crank was docked will remain on the screen until you change that part of the screen. Depending on how you're drawing in your game, you could use playdate.graphics.sprite.update, clear the screen when the crank is undocked, clear the screen and draw things each frame, etc.

1 Like

That was it. Thank you. :slightly_smiling_face:

1 Like