I have problem with moving an object by just following mouse without clicking any mouse keys and for touchscreen the object would follow the drag on screen.
To make an object follow the mouse just do on every tick "Object" -> setposition (Mouse.X,Mouse.Y) ...
Your other question is not so clear for me ... an object with behaviour "Drag & drop" could do this without more code.
I have a question in same subject, how can i compare Y on click left ?
<img src="smileys/smiley19.gif" border="0" align="middle" />
Develop games in your browser. Powerful, performant & highly capable.
Here is an example:
<img src="http://dl.dropbox.com/u/57899112/MouseYCompare.PNG" border="0" />
It tells you whether you clicked in the top half of the layout or the bottom half of the layout.
Yeah it's work fine thank u kittiewan :)