phaserjs / phaserjs/phaser

Camera shaking

Open
#6,810 3 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

🎥 Camera
Dominant language
JavaScript
Stars
40.3k
Forks
7.2k
PR merge metrics
No merged PRs in 30d

Description

Version

  • Phaser Version: 3.70 and 3.80 but probably earlier.
  • Operating system:
    Any (I'm on Windows)
  • Browser:
    Any (Firefox, Chrome and Opera)

Description

Example Test Code

The issue is visible in the current examples:

Additional Information

The issue happens in both ways depending what the camera follows, with the background or the player.

Coming from https://github.com/phaserjs/phaser/issues/5018#issuecomment-2093802674

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior in the linked Phaser examples: camera/follow user controlled sprite.js and tilemap/tests/visual culling check.js. Compare exact-follow and lerped camera movement with the reported player and background combinations. Done means the camera-follow scenarios no longer visibly jitter for either the player or background.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics, game-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.