Weird bug with AnimatableBody platforms as child of Parallax2D node

I’m not seeing a camera problem. I’m seeing your player accelerate when jumping on top of the AnimateableBody2D nodes. I took a look at your demo again, and I noticed the platforms had synch_to_physics turned off and they were extra slide-y. Turning it back on solved the problem. What was the reason for turning them off?

When I set Sync To Physics to true, I cannot stand on top of my platforms :

I also updated the Github repo: Parallax project

So I was playing with your demo and I noticed the same thing. But only for the first one, and half of the next one. I also noticed this:

Then I edited the Parallax2D node and changed the scroll scale from this:

Back to the default:

Problem solved.

So then I put it back. Clearly the Parallax2D node is moving the collision shapes.

So I multiplied the shape’s width by 3 and moved it to cover only the left half of the object.

And that worked too.

Ultimately, it looks like you’re gonna have a lot of kinks to work out to use a Parallax2D to host a TileMapLayer and other objects.

1 Like

OK I see. It looks like a bug. I’m going to open a PR on Github to help resolve that issue.

@dragonforge-dev Thank you very much for the help you’ve offered to me.

And I won’t forget to credit you in my upcoming game.

Link to the PR :

PR

1 Like