|
-
looked at the file was kinda messy so i didnt really understand.. but i think i can help
point = new Object();
point.x = this._x;
point.y = this._y;
localToGlobal(point);
box.beginx = point.x;
box.beginy = point.y;
is how you use the localtoglobal... it only works with objects formated object.x object.y (not sure if it can have more paramters or not, but i know it works this way).. so create a object tell it your local coordinate.. localtoglobal.. then it returns global posistions in object.x object.y
NOTE: need to recaculate if object is moved
something like
point.x = this._x;
point.y = this._y;
localToGlobal(point);
box.currentx = point.x;
box.currenty = point.y;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|