Bilge Posted January 20, 2015 Share Posted January 20, 2015 I created a Group and added it to the World. I greate a Graphics object and add it to the Group but the coordinate space of the Group seems to be locked to the screen - that is, it is unaffected by movements of the Camera. Why does this happen? How do I control whether Groups operate within the Camera viewport or the World coordinate space? Link to comment Share on other sites More sharing options...
JUL Posted January 20, 2015 Share Posted January 20, 2015 "but the coordinate space of the Group seems to be locked to the screen"indeed, at init, it's top left corner, 0,0 (x,y) myGroup.fixedToCamera=true; everything within the group will stick to user's screen point of view. Link to comment Share on other sites More sharing options...
Bilge Posted January 20, 2015 Author Share Posted January 20, 2015 `fixedToCamera` is false for the group and its contents. This is not what is causing the group to be locked to the screen. Moreover, setting `fixedToCamera` to true causes my Group to completely disappear from screen. What's more, setting `fixedToCamera` before drawing objects within it and after drawing objects within it causes the objects to be drawn at different locations, which seems non-intuitive. Even stranger, setting `fixedToCamera` to true on Group contents actually causes them to stick to the World instead of the Camera. Ultimately I do not understand the behaviour of `fixedToCamera`, but that is a non-issue right now because it is false for all my objects, so why then am I seeing groups stick to the Camera instead of the World they're placed within? Link to comment Share on other sites More sharing options...
JUL Posted January 21, 2015 Share Posted January 21, 2015 Hard to tell without seeing code. Maybe you're doing/using something completely wrong/backward in order to move groups/world/map/whatever. Link to comment Share on other sites More sharing options...
Recommended Posts