I realize you’ll probably want to see my code, but I want to see if anyone has had this same issue and might just know what I need already. Basically, I’ll be working for a bit and everything will be working fine, and then suddenly one time when I run the level, my camera moves in the wrong directions. It’s a top-down camera like you would typically see in a strategy game (ie. XCOM) so it uses WASD to move up/down/left/right. Like I said, it will work fine for a bit and then out of nowhere it will start going the wrong way. Restarting Unreal fixes the issue temporarily. At first, the directions were simply inverted, but now it goes in strange, seemingly arbitrary diagonal directions. This is for a class project; any help would be greatly appreciated.
99% sure we’re going to need to see the code for this one! ![]()
This is the tutorial I used to make my camera:
My code is nearly identical, all I did was use my own variable names. It will also help to mention that today I ran the project as an executable and everything works perfectly; I only get this problem while running in the editor itself. It’s also not just the movement angles that are wrong, it actually moves the camera from its normal starting point as well. If I notice anything else going wrong I’ll add another comment. It’s really annoying having to either deal with this or wait for it to build the executable to test properly.
Isn’t the directions are fixed to something rotating? Like your player character? Are you sure you are using the World’s coordinate system?