How can I stop the jittering

Look here:

How can I stop the red submarine from jittering when it reaches the “Y” of the player’s submarine?

(Enter your name (just leave it blank) then press “A” when you reach the sub editor)


Your if else doesn’t consider what should happen if the player’s y and enemy’s y match exactly.

Oh and your game looks awesome. Your pixel art is top notch.



I tried what you said before I posted this, and it didn’t work. Maybe I got it wrong? I’ll try again.

1 Like

It doesn’t work, now it just bounces back and forth on a bigger line.

Wait, no! It does work! Just had to change something.