i've created a random map generator with 32px dimensions just for fun (attachment). Afterwards i have tried to add grid movement for an active object.
I use the bouncingball-movement with 4 directions for the movement and add colliders each at the edge.
I have two problems i cannot handle right now:
1.) How to limit movement directions during move?
2.) How to limit movement range to next tile?
Important to know:
The map generator places active objects (32px) randomly.
Ideas are welcome!