- Home /
Issues with Player Input System & 2D,Issues with Player Input system & 2D Movement
I'm trying to port the Player Input example from the Samples for the Input System package to a 2D game instead of 3D. I can't figure out why my code won't work however. I've tried debug logging from both the Move() event and the OnMove() event the value of the vectors being pushed around; and m_Move is a normalized 2D vector from -1 to 1 (as I'm using the default Input Actions generated by the package when you make a new asset) in OnMove, but Move always says it's 0,0.
Here is my code: https://hastebin.com/afuqoxeret.cpp
Here is a screenshot of the Inspector: https://cdn.discordapp.com/attachments/634955032265228296/713122026373775511/unknown.png
Any ideas?
Your answer
Follow this Question
Related Questions
Stopping an object immediately 1 Answer
New Input System 'Started' and 'Performed' actions fire at the same time? 1 Answer
Add keyboard input in ClickToMove 0 Answers
My Players speed differs depending on the input method (gamepad or keyboard) 1 Answer
How do you make a 2D char. dodge and move to his original spot? 0 Answers