Hi!
In my game the player can throw rocks and then collect them back.
The problem is that sometimes they will fall on top of solid objects and the player can no longer reach them.
I would like to make it so that if the rock falls on top of a solid object, then it should be moved to the next free spot (a spot where there is nothing with the solid behavior) on the level.
How would you program something like this?