I am having this problem with my bullets offsetting whenever I am to the right of the screen.
Here's the video of what I mean.
Can anyone please tell me how to fix this? Comment if you need me to supply some code.
Edit: It might be because I am aiming literally at the sky and it needs to reach the distance of where I am aiming at.
ANSWERED IN COMMENTS

2 comments
pretty sure its because you are aiming at the sky, try putting up a wall in the distance and shooting at it.
Yes, it is indeed that. Thank you for that. I haven't realized that.