how I can click to move from block to block

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

I want my character must move from block to block and can’t free move
block size : 32x32

:bust_in_silhouette: Reply From: Fyodot

If you say moving from block to block, it sounds like you are looking for grid based movement! I hope I understand correctly.
Godot has an internal grid snap that you can turn on and off as you wish, and you can set it to 32x32 pixels.
You should find plenty tutorials on the matter if you look for “grid based movement”.

There’s this resource called kidscancode. They have an immense number of helpful code snippets and explanations, this might help you with general movement:
This person uses it in his video, and also enables grid snapping so you can see how it looks like:

Now, your title sais click, and if you are looking for point and click based movement, this guy has a very understandable tutorial:

I hope any of these resources are helpful!