Moving by certain step

Hello,
I’ve got a question about setting movement.
I need to set movement wherein actor i moving by certain step for example I have level divided in 20x20 squares and actor in move is moving by one square (screen) - like iin chess.

Thank You in advance :slight_smile:

Hi man ,
I think that Movement component is hardly usable to make “steps” he work with continue movement.
Beside is quite simple make your own movement…

Basically you can set 2 Integer to store X and Y in your plane and multiply it by the size of the grid you have.
Example, Move actor to
X= 5 *(13.5 is the size of the grid) , this will give you the positions.

To make a nice movement you can add an animation
or make your blueprint to lerp between the position you are, and where you want to go.

Many options.

  • Snap to grid for instant move.
  • Timeline + Lerp between location A and B if you want to precisely control how much time it takes
  • Tick + vInterpTo if you do not care how much time it takes

Here’s a quick and dirty example:
https://answers.unrealengine.com/que…ttle-2-ho.html

If you’re looking for something super simple and do not care about the individual tiles, this might be enough:

This will move the actor 100 units on the X axis.

2 Likes