# Object falls uniformly, without changing speed

Hello. I’m trying to adjust the enemy’s speed of falling into the screen when he falls while the camera goes up. As he falls, his speed changes according to the camera’s elevation, causing him to fall more slowly. How can I adjust this? I need help.

Details: The falling object is on one layer, but the player and camera are on another layer.

I want the object to fall continuously, without changing its speed while the game screen moves

Each layer has its own camera. So when the player is moving you can choose which layers follow. If you just want the object to move consistently across the screen regardless of the player’s movement, it should be on a layer with a static camera.

Yes! In this case, the camera follows the movement of the player climbing the base layer. But the enemy falling into a secondary layer appears to change its speed. I recorded a video as an example.

The black object is on a layer (Just like a HUD). The camera follows the player on the main layer (in this case, the object with the cat sprite).
When the player goes up a certain amount, the camera follows him going up, but as the black object goes down, it loses its speed. Can you notice?

It’s a GIF so I don’t know if it’s going to be noticed… Then I don’t know, is it just me? Or does the object actually fall slower even though it is on another layer? I swear this is bothering me. So much so that I “solved” by placing the black object on the base layer. In this case, when the player + the camera go up, the black object falls faster when the camera goes up. But I would like it to fall evenly without changing speed

The black object is falling at a constant speed. It’s just that you aren’t adjusting the camera position of the black object’s layer with the camera following the player, making for an optical illusion. Can you place the black object to the same layer as the platforms/player?

Ha, that is a pretty good illusion, I was tricked until I read @MrMen’s reply.

If I put two fingers across the screen and really focus on the box it is clearly falling at a consistent speed.

I think the effect is so strong because your jump speed is enough to “catch up” with the falling speed of the box, and even surpass it… and of course the boundary between purple and blue just happens to be right there with the box, making it super obvious.

If the box had a much faster initial speed then it wouldn’t be as noticeable. But, intuitively we expect things to go faster if we jump toward them, so personally I would either put this on the base layer or have the enemy layer camera follow the same position as base layer camera.

I did exactly what you said. I put my finger to just focus on the black object falling and indeed, it falls perfectly at just one speed and it doesn’t change. The colors and the background next to the base layer were too flattering for the illusion to happen.

Thank you for your observations, I really needed an evaluation. Now that I have the conclusion I can rest my mind.

You are right! Damn. So, I placed the black object on the base layer to show how the interaction occurs. (The object falls faster as the camera goes up, which makes sense).
So the black object on another layer is ok, it’s just an optical illusion haha .

Look at the example with the black object on the layer next to the Player: