At 5:51 PM -0800 3/2/02, Keelan Lightfoot wrote:
>on mousedown
> global offsetx
> put 32 into offsetx
>end mousedown
>
>on mousemove
> global offsetx
> if the mouse is down then
> put the mouseloc into foo
> add offsetx to item 1 of foo
> set the loc of me to foo
> end it
>end mousemove
Instead, try something like this:
on mousedown
global offsetx,gDragging
put 32 into offsetx
put true into gDragging
end mousedown
on mousemove mouseX,mouseY
global offsetx,gDragging
if gDragging then
set the loc of me to ((mouseX+offsetx),mouseY)
end if
end mousemove
on mouseUp
stopDragging
end mouseUp
on mouseRelease
stopDragging
end mouseRelease
on stopDragging
global gDragging
put false into gDragging
end stopDragging
regards,
Geoff
_______________________________________________
improve-revolution mailing list
[EMAIL PROTECTED]
http://lists.runrev.com/mailman/listinfo/improve-revolution