Designing Sea to collide with Player but Fish can only move

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Fedar

I have two types of objects, Player and Fish. I have Sea tiles. Player should not go inside of Sea, Fish should not exit from Sea.

I tried layer and mask properties and create multiple collision areas (I created too many collision areas) to handle this but I wonder if there is any solution to handle this using very simple way.

:bust_in_silhouette: Reply From: Merlin1846

The simplest way is to use the layers and masks. Make it so the player can collide with the sea but the fish can’t.

How can I make it so? Could you explain?

Fedar | 2020-03-29 19:44