flash script how?
- Started
- Last post
- 17 Responses
- plizo
Just curious if someone has a script similiar to how they did the background movement on this site:
How when u move cursor it moves to a section...
This has been done just curious if someone has figured out the script.. before I tackle it..Thanks
- stewart0
yeah, it stops when you hit a door. that is interresting.
- plizo0
Yeah pretty well done.. I dig that script...
- plizo0
Nothing......
- Neuarmy0
really nice, but sorry...im no help.
:(
- plizo0
thanks t hough
- chocodog0
don't know but i like it ... and this too:
- plizo0
yep
- unfittoprint0
it's a slide loop, where the targetx argument is related to the _xmouse. you'll also have to have a relation between the mask size and the MC._width
inside each sliding mc
slide= function(speed){
_x=((_xmouse*(_width/mask._width...
}slideInt = setInterval(slide, 30, speed)
things in the background have a smaller rate thant those in the front giving the illusion of paralax.
- Mick0
There are quite a few scripts on Flashkit that do this.
There's a centrepoint in the middle of the stage that is used as a reference point. A listener is created to determin the distance of your mouse from this point. The further your mouse, the larger the X increment the background moves. The different backgrounds move different amounts depending on their perspective (ie. the foreground most object moves about 5 pixels at a time, the middle one 1 pixel and the background on 0.2pixels or something). The doors just have a button that has an action to stop the listener or stop moving the objects.
- CyBrainX0
I really doubt this is going to be clear, but here is the crucial frame I have to make my nav work.
To see it action, look here: http://www.talesfromthehead.com/…
if (rollunderCount == 5) {
gotoAndPlay("controlContinue");
}
rollunderY = root.controllerPortfolio.rounded... ;
rollunderDist = yDestination - rollunderY;
_root.controllerPortfolio.rounde... _y=rollunderY + (rollunderDist / 5) + 2.6;and then it loops to another frame that increments rollunderCount. You could have it work on enterframe too.
"roundedRollunder" is the graphic you see moving under the different nav buttons.
- InnerPixel0
www.kirupa.com has a tutorial on this if I recall. check there if you're still having problems
- plizo0
Found nothing on that link interplanet
- plizo0
I couldnt find any on flahkit that showcase a tutorial or downloadable FLA...
- plizo0
yeah this is a start...
thanks
- plizo0
Those script are similiar but not close to the effect the site did..