0 votes


I am facing the following issue:

The idea is that when a player enters a region the name of that area shows up

  • I have a ParallaxLayer where I put Area2D regions
  • (I enabled collisions in Debug mode so I can see where they are)
  • The area entered event triggered randomly (so the player doesn't even have to be inside the area)

I think I may need to set properties on ParallaxLayer but I don't know what. Even if the Motion/Scale set to 1 it doesn't work the way I expect.

I have to use ParallaxLayer because the area should move along with the background in order to create the effect that the player actually in the area

I would be happy to hear other ideas as well to solve this problem

Godot version v3.5.1.stable.official
in Engine by (12 points)

Can you share your code? I tried to replicate this and I couldn't.

Sure, I share a minimal repro.
This is happening when I enable the camera.

  • First run the project without enabling the camera, everything is good (of course parallax layers are pointless without a camera).
  • Enable Visible Collision Shapes in debug
  • Now enable the camera by ticking the "current"
    Place the area2D objects to the following positions:
    (375, 172) and (645, 174) -> run the project. You will notice 2 log outputs before the player actually hits the areas

Repro repo: https://github.com/Vulcaine/godot_parallax_collision_repro

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.