Phaser: Camera deadzone

Created on 14 Jun 2018  路  8Comments  路  Source: photonstorm/phaser

Is there anything similar on Phaser3 to camera's deadzone that exists on phaser-ce ?

The example of deadzone in phaser-ce:
https://phaser.io/examples/v2/camera/deadzone

馃挅 Feature Request Easy Low

Most helpful comment

That would actually be pretty useful
+1

All 8 comments

Nope.

That would actually be pretty useful
+1

@GregoireDucharme Indeed
@photonstorm Any way to implement it in a simplified manner with the current version?

By the way i don't if this is the right place to write this but there a strange thing on deadzone example.

image

On middle left corner u can leave area. Is this normal ?

I reckon that's not the correct place to write this 馃槀
But it's a normal behaviour, since you reach the end of the world you can get out of the deadzone and reach the border.

That's correct. The deadzone just defines the region within which the camera will not scroll. It's not a clamp on where a sprite is allowed to move.

I see thanks for answers @GregoireDucharme and ofc @photonstorm 馃憤

Thank you for submitting this feature request. We have implemented this and the feature has been pushed to the master branch. It will be part of the next release. If you get time to build and test it for yourself we would appreciate that.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Legomite picture Legomite  路  4Comments

Colbydude picture Colbydude  路  4Comments

hugoruscitti picture hugoruscitti  路  3Comments

JarLowrey picture JarLowrey  路  4Comments

SKEPDIMI picture SKEPDIMI  路  4Comments