Hello! So I am not sure what I am supposed to do, as I have followed multiple videos but nothing seems to be working.
-
I created a Area2D for my Player and a CollisionShape2D inside it.
-
I created a TileMapLayer consisting of a cloud tileset (normal boring white clouds).
-
I painted all the tiles with collision through Physics Layer 0.
-
I went to the “Node” category on the Cloud TileMapLayer, created a Group called “Clouds” and made it global.
-
I ticked the box inside Cloud TileMapLayer AND Area2D.
-
I connected the node on_area_entered, and wrote this
func _on_area_2d_body_entered(body):
if body.is_in_group("Clouds"):`
print("Player in clouds")`
Cloud TileMapLayer has no collision layers checked, but collision mask is on 1 (Player collision mask is also on 1)
Nothing is printed. I am unsure of where to go as most videos are “outdated” on this topic and the ones that I follow work, but for me they dont.