Skip to content

Camera target position is not updated on teleport_position call #510

@eaglesemanation

Description

@eaglesemanation

Issue description

I have a pcam2d that is following player in simple follow mode. While trying to implement level switching logic I've tried to update player's position and immediately after that teleport the camera. This does not work, and if I understand the issue correctly - it's because target position is not being updated. My current workaround is to add await get_tree().process_frame.

Steps to reproduce

  • Use simple follow mode camera
  • Updated target's position and then immediatelly call teleport_position

(Optional) Minimal reproduction project

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions