Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | himterrent |
I want my character must move from block to block and can’t free move
block size : 32x32
Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | himterrent |
I want my character must move from block to block and can’t free move
block size : 32x32
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:
http://kidscancode.org/godot_recipes/2d/grid_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: https://youtu.be/5bxys-Zo_jk
I hope any of these resources are helpful!