How to I make my character move one step at a time? (Using W & S keys)

Hi, I am a UE4 newbie so any advice would incredibly appreciated.

I want my character to only move one step at a time (forwards & backwards) when pressing and holding the W and S keys. I am a little stuck on how to do this and quite honestly, I don’t know where to start. I have looked in Engines > Input > Movement and have deactivated the left and right movement function (because it’s not needed in this game), but I presume for something like changing the way the character moves, I would need to change something in the character blueprints…

Thank you in advance!

Hi! Thank you for your response. I realise my question may seem a little vague… I’ll take a look in the Character BP. I am using the ‘First Person Shooter’ template, is there any default BP’s I have to rework or will it be entirely new?

Ok. So you want to do FPS and make every movement to be discrete? If yes, that is more simple, because I was thinking about SideScroller or ThirdPerson…

Hello! There can be many details and issues when solving that. For example, you need to think how to differ button down for one step and button down for several steps. Several pressings or time seconds in pressed state? In Prince of Percia there was a special mode to do only one step. Anyway, most changes will be made in Character BP and Anim BP.

Yes, exactly that. I don’t want to over complicate anything.

Hi Kehel18, how do I go about doing this?

Hello! Here is simple solution in First Person Character BP in template project. It is forward movement, backward is almost the same, but having -1 multiplier.

However, it is not the most effective way of implementing that. If you want to make the best solution it will require using C++ and overriding at least one of two classes - APawn or UMovementComponent

Thank you! I will give this a go. Also, I have never used C++ before. I am very new to UE4 and the overall idea of bulding a game haha. How would I go about doing the alternate option using C++ ?

How do I create the ‘Set - Is Stepping’?
Sorry for all the questions. Like I said, I am very new to this…

I just add bool variable to BP with the name IsStepping

Thank you for everything. I have managed to get it working now, I appreciate your patience haha.