samuraiben [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=77415 Trouble with Diagonals <p> <table><tr><td> <a href="/bbs/?pid=129591#p"> <img src="/bbs/thumbs/pico8_yibotokg-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=129591#p"> yibotokg</a><br><br> by <a href="/bbs/?uid=77415"> samuraiben</a> <br><br><br> <a href="/bbs/?pid=129591#p"> [Click to Play]</a> </td></tr></table> </p> <p>Hello,</p> <p>I'm new to pico-8 and coding in general, so there is probably something obvious that I am missing. I'm trying to both normalize my diagonal movement while also prevent the &quot;jittering&quot; that happens sometimes with pico-8 diagonals. I saw in a Lazy Devs Academy video that we can prevent jittering by setting the sub-pixel position to the center of the pixel on the first frame of diagonal movement. But when I try to implement that here, it stops my normalization from working on speeds above 0.707, and it won't move my pixel at all while the speed is &lt;= 0.707. (cart currently has speed set to 0.7, so diagonal movement doesn't work).</p> <p>Any idea why this is happening and how I can fix it?</p> <p>Thanks for supporting a newb!</p> https://www.lexaloffle.com/bbs/?tid=52677 https://www.lexaloffle.com/bbs/?tid=52677 Wed, 10 May 2023 06:42:29 UTC