I'm trying to create a dashing mechanic like cuphead in my game, but there's a problem.
I'm trying to do it via a temporary bullet, but there's a problem with the bullet's direction. It always seems to go in the opposite direction that I want it to, but when I swap the values the left dash just keeps me in place. And when the screen moves far enough to the right, the bullet movement changes again.
Is there anything I'm missing that's causing this? I have other sprites that use the bullet function if that means anything.