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.
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
local coordinate in relation to screen coordinate
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
send message and call to a person
Forum: Report Spam + PM
[INSTALL_PARSE_FAILED_NO_CERTIFICATES]
[SOLVED] Director ERROR: Failed to execute new( params ) function on 'screen1'
Too many (200) local variables
Corona SVG Level Builder released. Drag and drop physics level editor with Inkscape and SVG.
Small bug in Collectible Items example
Pivot Joints and apparent elasticity
Can't make removeSelf() delayed