0 votes

Hello all!

We are working on a small project with our school, it is a 3D SideScroller in which the player moves as if he was in a 2D game.

Right now the camera is a child of the player and has no script attached, so the camera follows the player which always stays in the center of the screen.

We would like to make the camera follow the player but with a slight delay and hopefully with a very slight "bounciness" to make the movement much more natural.

I saw that in 2D, you can set a drag margin which has this desired effect, any leads for 3D?

Many thanks!

in Engine by (17 points)

1 Answer

+1 vote
Best answer

You can get this behavior by using InterpolatedCamera instead of the standard one.

by (21,920 points)
selected by

Thank you very much, with a little tweak the interpolated camera works wonders!

How would I put a slight delay on a Camera2d?
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.