You have to use PhysicalResponse. Use the tile method, it will help out if you are making more levels. The next thing is to have a collision event for your main actor, pacman. I suggest using the script editor, as using it later will help a lot.
pacman -> Collide(tile actor/repeat) -> Script Editor
- Code: Select all
PhysicalResponse(MOVE_EVENT_ACTOR_ONLY, USE_CALCULATED_MASS, 1, 1, 0, 0);
PhysicalResponse will prevent moving through the actors.