Hi, I found out a good and efficient way to make a draggable sprite. Here is the script:
If the image above won't show up, click here.
Last edited by HD123 (2010-08-07 13:21:17)
Offline
I don't want to burst your bubble or anything but if you click the little lock icon next to the sprite;
Then your sprite can be move online and in presentation mode
Offline
This seems like too much scripting for not enough return. Most of the script really isn't necessary, and there are better dragging algorithms anyway, like this one, which doesn't cause that annoying snap to pointer when you start dragging.
Sorry.
Offline
JeanTheFox wrote:
I don't want to burst your bubble or anything but if you click the little lock icon next to the sprite;
http://i35.tinypic.com/209fz83.png
Then your sprite can be move online and in presentation mode![]()
I already knew about that for a long time, I just felt like scripting it.
Offline
Thanks for looking at this, I will try and improve it now.
Update:
Improved! Now it works exactly like the little button next to the sprite name.
Last edited by HD123 (2010-08-07 13:25:24)
Offline
Harakou wrote:
This seems like too much scripting for not enough return. Most of the script really isn't necessary, and there are better dragging algorithms anyway, like this one, which doesn't cause that annoying snap to pointer when you start dragging.
Sorry.![]()
You can say what you want about my dragging scripts. That's your opinion
Last edited by HD123 (2010-08-07 13:30:40)
Offline
i personally find both methods equally valuable
it's a good alternative to the lock button especially if you want it to follow the mouse only at a certain condition!
way better than the more common 'override' method where you have an extra script which overrides the lock button in holding the sprite's position. (which by the way only works in presentation mode)
well done!
Offline
why bump?
Offline
HD123 wrote:
Harakou wrote:
This seems like too much scripting for not enough return. Most of the script really isn't necessary, and there are better dragging algorithms anyway, like this one, which doesn't cause that annoying snap to pointer when you start dragging.
Sorry.![]()
You can say what you want about my dragging scripts. That's your opinion
Hey, don't take offense. I was just trying to be helpful.
Offline
Harakou wrote:
HD123 wrote:
Harakou wrote:
This seems like too much scripting for not enough return. Most of the script really isn't necessary, and there are better dragging algorithms anyway, like this one, which doesn't cause that annoying snap to pointer when you start dragging.
http://i33.tinypic.com/5ogx9l.gif
Sorry.![]()
You can say what you want about my dragging scripts. That's your opinion
Hey, don't take offense. I was just trying to be helpful.
![]()
Oh. OOPS! No offense taken.
Offline
chipguy wrote:
you can just do if mouse down and touching sprite whatever, repeat until mouse up, go to mouse pointer.
2 times easier. to me.
True, but the point of his script was to make it exactly like the "Make sprite drag able" button, except only during specific conditions.
Offline