i made this to help someone
<when[ ef puck ]clicked>
<repeat until><< <not> <mouse down?> >>
<< <if><mouse down?> <and><( mode <=> freeplay )> >>
<go to[ mouse pointer
be sure to lock the lock again.
Offline
If you want more accurate draggability (being dragged from the point your mouse touched it), use this script I made:
You don't have to understand it, just copy it
EDIT: Be sure to take out the [set X to 0] and [set Y to 0] if you don't want it to start in the center.
Last edited by Kileymeister (2010-03-06 14:40:43)
Offline
Kileymeister wrote:
If you want more accurate draggability (being dragged from the point your mouse touched it), use this script I made:
http://i50.tinypic.com/t03vc7.gif
You don't have to understand it, just copy it
EDIT: Be sure to take out the [set X to 0] and [set Y to 0] if you don't want it to start in the center.
I am using that in Xen8/
Offline
Kiley and mininut, no scripts are necessary to drag sprites... Just click the lock symbol near the sprite's name.
Offline
technoguyx wrote:
Kiley and mininut, no scripts are necessary to drag sprites... Just click the lock symbol near the sprite's name.
The entire purpose of this thread is to make a sprite draggable WITHOUT that. That always makes the sprite go to front.
fg123 wrote:
I am using that in Xen8/
You mean you're using that technique, or you saw my script and thought you would use it?
Last edited by Kileymeister (2010-03-06 16:26:51)
Offline