What am I doing wrong?

I followed this guide https://youtu.be/g31NTpq9p-o?si=iwSFLJvyYlSCWS4i step by step, most of it went smooth, but my character is not moving. I created input in project settings, (fvesfve hosted at ImgBB — ImgBB) when I created and connected blueprint in my character (wefvewefw hosted at ImgBB — ImgBB) it just doesnt move and still shows the value of change as 0 (zero)

I am complete noob in this, just making it for fun for myself, to see if I can do it. So what am I missing? After hours of googling and not working I decided to ask here. My character and enviroment is set just as in this video (different drawing made by me for tileset/tilemap, but principle should be the same i quess) rest is working as it should be but movement not at all.

Any advice welcome.

It will always be zero when you’re not running

Try putting a print string on there as well as the ‘add movement input’, see if it triggers :slight_smile:

It says a lot of HELLOs :smiley: Look, maybe this will help:

since I am new to this, I decided to write few steps I took, so you can tell me what you need a screenshot of.

Tiles and enviroment:

-I created tileset from my drawing, added “box” to ones i needed (1st I forgot and my character fell through them, then I figured it out)

  • Built my tilemap for platforms and background (bg 0;0;0 platform 0;1;0)

Character:

  • Created a sprite flipbook

  • added bleuprint “Papercharacter” (or how exactly it is called) added flipbook of my character to it, adjusted that ball thingy for physics. When hit play it landed on my platform

  • i added game mode bleuprint, set pawn to my paper character

  • in project settings, game mode, set my mode to upper created mode

  • in project settings created axis move command for keyboard Q (as in screen 1 in original post)

  • in character blueprint, in event graph I added my axis move command from upper

  • added “add movement input” and connected it to axis move command on exec and scale value (and here it is still 0, even when command is set to 1)

Possible problem:

  • in tutorial they added spring arm camera to character to follow it. I wanted my camera to be fixed and capturing whole scene, while my character jumps around the screen.

When added cameraactor, I could set my ratio to Portrait mode (like on a phone) only to landscape mode. So I instead changed it to cinematiccameraactor and adjusted it.

To make it my default camera in game I added level sequencer and attached it to my camera. It abruptly ended after few seconds so I made it to loop indefinetly.

You can print what that axis value is, you need to see that. From then, I think you probably have one of two problems

  1. The axis value is 0,

  2. The axis value it between -1 and +1, then we can check the movement code.

I notice the vid used a character, you’re using a pawn here. That’s probably why you have no movement?

You might get it working if you add a floating pawn movement component

image

But if you want jumping etc, character BP is better.

thx

1 Like