Hello! I just started with Godot and game development.
I'll be happy if someone can help me with my objective. So, I need to realize this block movement mechanic. Main idea: when Player click on the block - each block move randomly, but with a certain direction which is specific to a particular block and stop when it's reach edge of the grid or another block.
Most of tutorials and official documentation explains "standard" movement styles

Basically, you have a function that finds all the legitimate moves, So in the horizontal/vertical movement you add x + distance and check if that is legal, then x+ 2 * distance, etc. If it's a legal move, you add it to an array. Then you find a random integer of the size of the array to get the move.

    fire7side Thanks a lot! It's really helpful. I think will be nice to add smth like this in a movement section of official doc. Click object to move, drag and drop, etc. Types of the move commonly used in mobile games.
    ...
    Well, while I'm grappling with this 😃