I’m new to game development and i started to learn some basics.
This question has probably been asked many times, i’ve found many topics and tried many things, but nothing worked for now unfortunately.
I have a game with a view from top (2d), i use the new enhanced inputs system (since i saw the last one being deprecated), to handle my character’s movement, i can move him left/right (x axis) but not in top/bottom (z axis).
I print location and i see Z being modified but nothing happened with the character placement.
Here’s all my BPs so you can have an idea of what i’m working with :
I don’t know the functions associated with Z-AXIS movement (Jumping, you mean, right? Because X and Y are North/South/East/West), but I would take a look at the default BP_ThirdPersonCharacter to see how their Z-AXIS jump is set up.
Oh i see, well i did not used it, but i’ll take a look and see if i can find a way to go forward my issue.
Thank you for this information, good to know there’s base contents depending on game’s type !
Yeah, I also took a look at it, but now, my character don’t even move anymore and my input doesn’t even seems to work too actualy since logs doesn’t appear anymore also
Edit:
Ok, figured out why my input wasn’t working anymore, i used a “is valid” node before “Add mapping context” and it seems to not trigger any inputs using it
Ok i found a solution, i rotate everything at -90d so i can use Y axis to go up and down instead of Z axis, i dont know if it’s a good thing to do but it works.
Unreal is a right handed coordinate system.
Z is up/down, not forward/back.
X AND Y are the axis you need for forward/back, left/right.
Based on your screenshot with the camera being sideways,
On a top down game, I’d say something is amiss with the basic setup.
Additinally, when using the character class you just can’t go up and down on Z at all.
Even with gravity disabled, if you move up and down you loose floor contact. If that happens, it enters an isflying state. If that happens the default animations wont play anymore.
Anyway. If the goal is to learn the engine thats one thing, but if you want to make and release a 2D game, use a better engine.
Unreal isnt 2D friendly. So many better options out there for 2D, some of which don’t even offer a 3rd axis to create confusion