Hello guys
I am struggling understanding what those 2 are, and how they differentiate.
The sprite is a simple Phaser.GameObject.Sprite with no physics.
Thanks!
Hello guys
I am struggling understanding what those 2 are, and how they differentiate.
The sprite is a simple Phaser.GameObject.Sprite with no physics.
Thanks!
DisplayOriginX is in pixel relative to the width of the sprite.
OriginX is in percent relative the width of the sprite.
Example:
If your sprite is 120px width and you set the setDisplayOrigin(30)
, OriginX will be 0.25; DisplayOriginX will be 30.
Origin is normalized (0 to 1), DisplayOrigin is in pixel.
Thank you!