-
http://members.cox.net/windstorm_media/office.html
http://members.cox.net/windstorm_media/Pan.movie
This pan was created with the help of Blanius.
Would anyone know of a command or mehod to stop the scrolling if the user wanted to momentarily?
-
KoolMoves Moderator
Hey Wind! You could perhaps make the cursor from a button then when clicked toggle the scroll off and on
-
Hi Blanius,
Could you give a step by step to making the scroll on and off with in the button. I tried all this evening and had no luck.
-
KoolMoves Moderator
Originally posted by pwihms
Hi Blanius,
Could you give a step by step to making the scroll on and off with in the button. I tried all this evening and had no luck.
Sure man, in the main movie make a new var call pantoggle and make it equal true
then have your button toggle between true and false and also set velocity.x to 0 when off
then in the script where the cursor(button) follows the mouse add
if (pantoggle){
the current code
}
-
KoolMoves Moderator
?
Did you get this to work?
-
I have been involved with work related items that put the pan on hold for a few days.
I tried for several hours, but couldn't work it out on the right placement of the files and code. A lot of it is just trying to get a better handle on the placement of what goes where in 3DFA and learning javascript. I have a very basic beginners understanding of that, but I'm working on it.
Because of my limited understanding of javascript I even have trouble following parts of what you explained to do.
I'll see what I can do tonight. Thanks for your help.
Last edited by pwihms; 10-01-2002 at 02:53 PM.
PW Ihms
-
I tried various steps and buttons to apply the code with no success. I possible, could you be more specific where each would go and what I would need to create first,... I'm learning.
Thanks for your help.
-
KoolMoves Moderator
Could you just set the velocity to 0 at the center?
-
KoolMoves Moderator
Originally posted by pwihms
I tried various steps and buttons to apply the code with no success. I possible, could you be more specific where each would go and what I would need to create first,... I'm learning.
Thanks for your help.
Hey went back and looked at the code I did for you before and added to it so if you click anywhere in the screen it stops/starts scrolling. Added a third view to the arrow, just a square but you get the idea.
http://deadyeti.com/files/Pan.movie
Also see example here
http://deadyeti.com/blanius/pan.html
I had forgotten that we did this in actions rather than javascript.. this was originaly because there was a bug in the javascript with getting the mouse position. If I where doing it over I'd do it all javascript now, but this is a good example of using the same ideas in Actions.
Last edited by blanius; 10-03-2002 at 11:38 PM.
-
Amazing! I have got to learn this. Thanks! I'll play with this tomorrow and get back with you. It is late.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|