Please read my lengthy answer on this topic here: Beginner question about Collisions - #4 by britzl
An example of how to resolve the collisions in a top-down game can be seen here in my LD 37 entry:
Please read my lengthy answer on this topic here: Beginner question about Collisions - #4 by britzl
An example of how to resolve the collisions in a top-down game can be seen here in my LD 37 entry: