Area/CollisionShape works in one scene but not in another NOT SOLVED

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

I’mm designing a squared tiled map in 3D. To know the translation of each tile, I want to use a CollisionShape and an Area to print that vector when clicked.

In the experiemental/test scene, it seems to work, but not in the main scene of the game. I put a video here so you can see what I mean: YouTube video

Here I put the code of the tile:

extends Spatial

func _on_Area_input_event(_camera, event, _click_position, _click_normal, _shape_idx):
	if event is InputEventMouseButton:
		if event.button_index == BUTTON_LEFT and event.pressed:

I forgot to show in video, but in Remote, all the CollisionShapes are in the right place and have a Shape:

The only node that uses inputs is the camera I created, but in the proof scene everything works fine.

:bust_in_silhouette: Reply From: JorensM

Have you checked if your collision layers/masks aren’t set up wrong? I had a similar issue and my layers/masks were the problem.

First time I’ve heard about collision layers/masks. I found this link for documentation. But not sure how to solve it. Area layer and mask is set to 1. Not sure if the mouse have different mask.

abelgutierrez99 | 2021-09-10 16:48

Well, if you haven’t tampered with the layers/masks then that’s not the root of the issue. It might’ve been the root if you HAD changed them, but since you haven’t…

JorensM | 2021-09-10 17:06