I am new here and learning from the beginning right now, with little understanding about the principle of Sprite.
Now I want to scale up the sprite 2x whenever the button is clicked. Following the SDK, I use setscale and setimage. However, it turns out the sprite can only be scaled once. Please help me out about the mechanism. Thanks very much!
if playdate.buttonIsPressed( playdate.kButtonA ) then playerSprite:setScale(2) playerSprite:setImage(playerSprite.getImage(playerSprite)) end