How to Get Absolute X/Y Coordinates for an Object Inside Scaled Display Group

Is there any way to get the absolute x/y coordinates for a display object that is inside scaled display group. If the group was not scaled I would use object:localToContent(), but unfortunately in case of scaled display group parent it does not work. By absolute coordinates I mean the coordinates of the virtual screen defined in config.lua.

I solved this by placing the group in the middle of the screen and making sure the group bounds stay always the same. That way object:localToContent() works just fine. Don’t really understand everything that is going on, but it’s certainly possible to create a scenario where object:localToContent() fails.

I solved this by placing the group in the middle of the screen and making sure the group bounds stay always the same. That way object:localToContent() works just fine. Don’t really understand everything that is going on, but it’s certainly possible to create a scenario where object:localToContent() fails.