How to make smooth movement using timeline?

I need to make smooth movement. I think it can be made using timeline, but i dont know how to use it correctly

Is this for the player or the AI? Either way, you can use the “Add Movement Input” node or one of the movement nodes like “Simple Move To Location”, “AI Move To” etc. to make it automatic.

Simple Move To Location is not suitable in this case, because I have implemented tile-based movement
2024-10-06 22-52-28.mkv (2.8 MB)

Unfortunately I’m not able to play your video. But you should still be able to add a navigation mesh to your scene even if you have tiles. If there’s something I’m missing however, you can also use the “Add Movement Input” node. To do that, you can calculate the angle between the target and the character by using the Find Look at Rotation node, use the result to rotate a vector type variable (which you can create using the Make Vector node, just create a unit vector like (x = 1, y = 0, z = 0) ) by using a Rotate Vector node and finally plug the result into the Add Movement Input node, and make sure to call it continuously until it reaches it’s target. Note that due to float precision, the character might miss the location to stop if you attempt using the == (vector) node so before you plug the target location and the character’s current location into there to check for the duration of the movement, split them to expose their x y and z components, round their x and y axis respectively by using the Round node and compare them instead. Or you can also use your tiles’s collisions to check if the character has reached it’s destination. But using the set actor location node isn’t ideal for this purpose, don’t think of it as a movement node, it’s just a teleportation node.

I find solution

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