local coordinate in relation to screen coordinate

hi all,
I am having problems converting local coordinates to the screen coordinates
There must be a function that gives me the x,y of an object in a display group, relative to the screen?
I tried printing out the xReference, Origin, Scale, none of it has the coordinate that I want.
Am I missing something? I looked all over the forum, it must be something simple.

Wouldn't adding the object coordinate to the display group's coordinates do the trick?

like this?

object.x + object.parent.x ?

There are new functions in 243: localToContent and contentToLocal. Not documented yet but I presume they will help

@jmp
yeah I found them few days ago, should have updated this thread. They are the right function to use to map coordinates between groups.

@jmp
yeah I found them few days ago, should have updated this thread. They are the right function to use to map coordinates between groups.

@jmp I know this is a bit of a topic jump, but do you know when the new functionality is going to be fully documented online? Also, I've noticed a lot of missing info from the downloadable (zipped) docs, too. matt.

I dont work for ansca in any way!

But do you know? ;)

oops

m

views:1508 update:2011/10/4 8:06:35
corona forums © 2003-2011