Can't move my character on Z axis

Hi everyone !

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’m open to any informations regarding this !
Thank you in advance !

1 Like

Hello, Nheira!

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.

Thank you for the quick answer !

Well, let me show you how the game looks for now

As you can see , this is more like movin on top/bottom instead of jumping.

Sorry i’m not sure what to screenshot for the “BP_ThirdPersonCharater” , do you mean the BP i set my character sprite to ?

Maybe this one :

I don’t know how your project is set up, but if you search your CONTENT FOLDER for “BP_ThirdPersonCharacter” you’ll see what I mean.

If it is not there, then you can add it by:

Adding feature, then:

Choose Third Person.

Then I would open the blueprint and see how movement is handled there.

I hope a 2D Specialist can intercept this thread, because I’m curious, myself, how movement works from a top-down persepective.

1 Like

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 !

1 Like

I’m telling you to look at “3RD PERSON” when there’s top down. I need coffee.

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 :sweat_smile:

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

1 Like

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.

I think you just have axis confusion.

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 :stuck_out_tongue_winking_eye:

2 Likes

Thank you for all of these informations, yeah for now it’s only to learn basics but i’ll take a look at other engines for this kind of games !

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.