How do I clamp a kinematic body to a grid map node?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Genesis689

I’m making a puzzle type game on a grid and I want to clamp the player kinematic body node to the grid but I can’t figure out how to go about doing this as I would like to include jumping from square to square animations as well.

What’s the Godot version and is it 2D or 3D?

I know how to make the player stuck to a grid on 2D but don’t know how to make animations between them so I can’t help with that part of it.

MaybeAnonymous | 2022-12-24 16:04

:bust_in_silhouette: Reply From: exuin

It’s similar to how it work on 2D. You want to play an animation that takes one grid length in size and ignore player movement during that animation.