You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/core/Camera.js
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -158,7 +158,11 @@ Phaser.Camera.prototype = {
158
158
},
159
159
160
160
/**
161
-
* Tells this camera which sprite to follow.
161
+
* Tell the camera which sprite to follow.
162
+
*
163
+
* If you find you're getting a slight "jitter" effect when following a Sprite it's probably to do with sub-pixel rendering of the Sprite position.
164
+
* This can be disabled by setting `game.renderer.renderSession.roundPixels = true` to force full pixel rendering.
165
+
*
162
166
* @method Phaser.Camera#follow
163
167
* @param {Phaser.Sprite|Phaser.Image|Phaser.Text} target - The object you want the camera to track. Set to null to not follow anything.
164
168
* @param {number} [style] - Leverage one of the existing "deadzone" presets. If you use a custom deadzone, ignore this parameter and manually specify the deadzone after calling follow().
0 commit comments