Flowpix [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=77945 way to import a sprite in png format to pico 8 EE <p>Hello everyone.Please tell me, is there a way to import a sprite in png format to pico 8 EE?</p> https://www.lexaloffle.com/bbs/?tid=53140 https://www.lexaloffle.com/bbs/?tid=53140 Fri, 16 Jun 2023 17:38:45 UTC please help me figure out the animations <p>when I press the left and right arrows, my sprite plays an animation that starts from sprite 1 to sprite 4, since the init function reports that sp=1.At the same time, there is a standard check if SP &lt;4, then.However, I cannot reproduce the animation of sprites from 17 to 20 when I press the up arrow, because as soon as I say in the loop that SP = 17, the animated sprites overlap each other due to very fast sequential rendering.Could you please help fix this?Here is the code:<br /> --player--<br /> player={<br /> x=63,<br /> y=63,<br /> f=false,<br /> sp=1,<br /> speed=1,<br /> stimer=0<br /> }<br /> end </p> <p>function _update()<br /> --player movment--<br /> if btn(➡️) then<br /> player.x+=player.speed<br /> player.f=fals</p> <p>if player.stimer&lt;10 then<br /> player.stimer+=1<br /> else<br /> if player.sp&lt;4 then<br /> player.sp+=1<br /> else<br /> player.sp=1<br /> end<br /> player.stimer=0<br /> end<br /> end<br /> if btn(⬅️) then<br /> player.x-=player.speed<br /> player.f=true</p> <p>if player.stimer&lt;10 then<br /> player.stimer+=1<br /> else<br /> if player.sp&lt;4 then<br /> player.sp+=1<br /> else<br /> player.sp=1<br /> end</p> <p>player.stimer=0<br /> end<br /> end</p> <p>if btn(⬆️) then<br /> player.y-=player.speed<br /> print(player.sp)<br /> if player.stimer&lt;10 then<br /> player.stimer+=1<br /> else<br /> player.sp=17<br /> if player.sp&lt;20 then<br /> player.sp+=1<br /> else<br /> player.sp=17<br /> end<br /> player.stimer=0<br /> end<br /> function _draw()<br /> cls()<br /> map()<br /> spr(player.sp,player.x,player.y,1, 1,player.f)<br /> end</p> https://www.lexaloffle.com/bbs/?tid=52882 https://www.lexaloffle.com/bbs/?tid=52882 Sat, 27 May 2023 07:11:13 UTC