Posted By
|
Message
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
23rd April, 2009 at 01:47:41 -
I have another problem - should be more straight-forward than usual though
Anyways, I'm having trouble trying to make it so I can click and drag to scroll the screen - just like the "Hand" tool in Acrobat Reader for example.
I'm sure it should be quite similar to drag & dropping objects (which I know how to do), but I still can't figure it out.
My best attempt so far, doesn't work properly at the edges of the frame, and also continues scrolling even when the mouse isn't being moved.
Does anyone have an example of this, or any idea how to go about it?
Any help much appreciated, as always
n/a
|
Chloe Sagal under the influence of FUN
Registered 19/02/2009
Points 607
|
23rd April, 2009 at 02:59:32 -
maybe if you have your little hand and say "when user is holding the click" then have that hand stay right there, and have the screen follow the mouse itself, then when you re-click the hand snapps back to the mouse (or maybe runs back, that might be kind of funny to have a guy with a really big fork that forks the ground to drag the screen then freaks out and runs back over to you. ugh, dumb) but yeah, maybe that might work.
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal
|
RedEnchilada formerly RedEchidna
Registered 01/08/2008
Points 301
|
23rd April, 2009 at 03:09:42 -
User clicks with left button:
Set Counter "DragX" to XMouse
Set Counter "DragY" to YMouse
Repeat while left mouse key is pressed:
Scroll X to "((X Left Frame+X Right Frame)/2)+(value("DragX")-XMouse)"
Scroll Y to "((Y Top Frame+Y Bottom Frame)/2)+(value("DragY")-YMouse)"
That works, unless I've mis-typed something.
http://www.youtube.com/watch?v=WYrSD35vHo4
woooooooooooooooooaah maaaaaaaaaaaaaaaaaaaaan
|
Sketchy Cornwall UK
Registered 06/11/2004
Points 1971
|
23rd April, 2009 at 12:38:59 -
Perfect. Thanks so much - I'd been racking my brains over that for ages
n/a
|
|
|