Problem with player colliding with node that its not supposed to.

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

I have a star node that needs to be able to collide with the platforms and I have a player that needs to be able to collide with the platforms, the problem I’m having is the player keeps colliding with the star (I don’t want that), is there any way I can fix this?
player collisions:


star collisions:
enter image description here
tile map collisions:

github project

I tried recreating your setup and it does not collide for me. Can you provide a Github project with the minimum necessary to reproduce the error?

Gotcab | 2023-06-19 04:13

:bust_in_silhouette: Reply From: LK2009

The Problem is that your Player is on the plattform layer and the star masks the plattform layer so it collides with it. Your player only needs to be on the player layer same goes for the star the mask is what it collides with.

For your Star do it like this:

And for your Player like this: