So I'm trying to set the position of an object (edit box) to MouseX MouseY but it's setting it to some odd (but consistent) location. I tried both relative and absolute positions. Any ideas?
Can you post a cap?
Perhaps your edit box is on a layout that is not scrolling.
Develop games in your browser. Powerful, performant & highly capable.
It is on such a layout (and needs to be). Anything I can do to get around that?
If I understand correctly what you're trying to do you should look into some system expressions. Check out the following example.
http://dl.dropbox.com/u/2306601/seteditbox.cap
It sets the editbox position when you click left using the ScrollXLeft and ScrollYTop expressions, which return the left and top visible edges of the layout. Therefore it will work correctly for nonscrolling layers.
Thanks, I was looking how to get the currecnt scroll position but couldn't find it. ScrollXLeft and ScrollYTop work