Maybe I should be more specific.
I'm trying to get a parallax background to scroll when I move my mouse to the edge of the screen, so I have two area2ds on either side of the screen.
The layout looks like this:
- CanvasLayer (so the Area2Ds don't move with the background)
I have a script on the Camera2D that is connected to the mouse entered and mouse exited signals on the area2ds.
For some reason, when I first play the scene, the signals don't seem to work. But I also have the Camera set to scroll with keyboard inputs. So if I use the keyboard inputs to scroll the camera, the signals work. But only the Area2D on the right of the screen scrolls the camera, even though the code for scrolling the screen to the left and the right is the same. Also the mouse exited signal for the left Area2D is sent out right after the mouse entered signal even if I haven't actually moved my mouse out of the area.
I'm really confused.