So I’ve been working on a little arcade game in my free time, but I’ve just hit a snag;
When pressing the fire button for player 1 (w), the player shoots. Great! However, if you press it too soon after the game begins/its the first input you press, the player… moves forward?
My game is locked to a grid, using movetocomponent movements, so the ONLY way the player can move is by directly moving to components to the left or right of them. Going forwards should not happen, and as far as I can see in my script, CANNOT happen? I have not put a single piece of script in here for the player to move forward, so why does this happen? It feels strange enough for it to be a bug, but I can consistently get it to happen. If any other keys are pressed before W, the player will not move forwards until the game is reset.
It isn’t just W either, I’ve tried other keys like T, etc.
Please help!
Can you post a screenshot of your project settings input section? Also, do you happen to have any input action nodes placed on the player controller, etc?
The ship pawn is set to auto-possess player 0, I believe. I moreso did this so that when you click play it doesn’t spawn a new ship that just falls. If there’s a better way to do this that will also fix my input issue I’d love to know!