Hello,
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 "jittering" 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 <= 0.707. (cart currently has speed set to 0.7, so diagonal movement doesn't work).
Any idea why this is happening and how I can fix it?
Thanks for supporting a newb!
P#129591 2023-05-10 06:42