Download

Having some issues with my grid movement script.

So I have this setup which gets the actor’s current transform and checks if it’s equal to the current grid they are standing on in order to change where the movement goes then does it again, and again every time you move with the same visual code and everything copy pasted and just the space variables changed. Now, whenever I say move with W on my middle grid spaces it will skip 1 or 2 grids, but if I go to the right or left grid spaces and try it, it works perfectly fine. If I change the code to try and fix it, one of the old grid spaces will start doing this weird skipping. I have attached a photo of my visual code and the order of the grid spaces. I’m coming to UE4 from unity so I’m not great at visual coding or UE4 in general compared to Unity.