Skip to content

Camera2d has a one frame delay #28492

@krdluzni

Description

@krdluzni

Godot version:

3.1.1.stable.official

OS/device including version:

Windows 10

Issue description:

Camera2D with no margin or smoothing, attached to a Sprite with a simple movement script, follows the Sprite, but with a one frame delay on its position. This is most visible during the very start of the motion, and the very end.

Expected behaviour:
Camera2D follows the sprite exactly.

Other notes:
This looks like it's a result of internal node functionality happening on NOTIFICATION_INTERNAL_PROCESS before gamecode-driven position updates happen on NOTIFICATION_PROCESS.

Minimal reproduction project:

Random.zip
Launch, and use arrow keys to move. Watch at the start and end of movement to see the issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions