Moving on a grid

sweeetjd
Tue, 28 Nov 2023 19:25:18 +0000
Blueprint

I’m building a game in which the player can run along a grid on either the X or Y plane, but never both at the same time. The script works fine, except when changing directions there is a bit of a lag in changing directions, caused by the “Recenter Pawn” function making sure that the pawn is on the grid. I would like to remove this lag, but I don’t know how to do it without making the player jump instantly onto the grid.

This blueprint shows one axis of movement and the “Recenter Pawn” function. The other axis is the same, just with the X and Y values switched.

Movement posted by anonymous | blueprintUE | PasteBin For Unreal Engine

4 posts - 2 participants