hushaojie04 / libgdx

Automatically exported from code.google.com/p/libgdx
0 stars 0 forks source link

Image doesnt use Origin #376

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. create an Image, add to the stage
2. set img.originX   and img.originY
3. render scene

The image should be offset by the origin amount.
however, changing origin to any value has no effect.

perhaps Origin only applies to Group and other scene graph features, but it 
would be extremely useful to apply to Images also in terms of centering bitmap 
sprites.

Original issue reported on code.google.com by dc.pik...@gmail.com on 7 Aug 2011 at 9:33

GoogleCodeExporter commented 9 years ago
No, the origin is not an offset, but a point around which rotation and scale 
are performed. 

Original comment by badlogicgames on 8 Aug 2011 at 12:54

GoogleCodeExporter commented 9 years ago
Did you plan to add something like a offset (in srpite class)?
This may be useful

Original comment by JPLeme...@gmail.com on 26 Aug 2011 at 3:49

GoogleCodeExporter commented 9 years ago
No, because you can achieve that by setting the Sprite's position...

Original comment by mario.ze...@mirpartners.com on 26 Aug 2011 at 5:36