This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

I have a Camera2D node connected to the player. however I would like the camera to go down relative to the player while down is being held. I believe to do this I need to change the offset. How do I change the offset?

in Engine by (12 points)

1 Answer

0 votes

Actually, if you just click the "Current" box in the Inspector on the camera, that should do it, i believe, if you’re trying to get it to move WITH your player object. If you’re trying to move it relative to the player (independent camera movement detached from player movement) then it’s just a matter of changing its position along with the code. Something like:

Func _input(event):
### your action code here
     #Camera2D.position.x +1
by (562 points)
edited by
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.