quick $5, perspective scrolling?
- Started
- Last post
- 16 Responses
- coffeesoy
im trying to achieve a perspective scrolling menu kina like:
http://www.saintsandsoldiers.com…
except a very simplified version of it. im a virgin with flash and tried to do the same effect applying actions to each button. see here:
http://www.troyreyles.com/crap/
however i cant get the buttons to reach their boundries simultaneously with an easing effect. im sure theres a faster and easier way of doing this.
any immediate help/links to tutorials would be greatly appreciated as i am on a tight deadline. if anyone could whip up a .fla ill send $5, paypal your way.
thanks in advance
- horton0
wow $5... u serious?
- kyl30
I would but I used up the budget waiting for that site to load.
- coffeesoy0
and a gmail account.
- g-style0
Wont do it for under 50$ :)
- coffeesoy0
hmm. ok i get the hint...
i just thought it was something someone could do in like 5 min or less
can anyone kindly offer me tips or point me to any tutorials at least?
- fate_0
Next time, just ask politely, Plying someone with $5 is just kind of insulting.
All you do is relate the _x position of the background movieclips to the _xmouse position of the mouse. But you divide _xmouse by larger numbers for the items "farther" in the distance, and smaller numers for items closer. This makes those in the distance movie in smaller fractions related to _xmouse, vice versa.
- coffeesoy0
sorry.. i didnt realize i was being insulting
fate- how can i include that into my current code? can you elaborate? keep in mind i know nothing about actionscript.
i seriously appreciate your help.
- joyride0
they've got the scrolling effect tweened in the the timeline over 400 frames.
They've got a function to detect where the mouse is and send it to that keyframe:
var _l1 = this;
_l1.onMouseMove = function ()
{
var _l1 = this;
var _l2 = _l1._xmouse;
if (_l1.Hit.hitTest(_l2 + _l1._x, _ymouse + _l1._y, true))
{
_l1.f = Math.round(400 * (_l2 / 700));
} // end if
};
_l1.onEnterFrame = function ()
{
var _l2 = this;
var _l1 = _l2._currentframe;
_l1 = _l1 + (_l2.f - _l1) / 10;
_l1 = Math.max(1, Math.round(_l1));
_l2.gotoAndStop(_l1);
_l2._parent.Frame.ContentLevel.S...
};gL ;)
- fate_0
What do you mean by "Reach their boundaries simutaneously"? Both will only be lined up at one spot no matter what. You can change that position if you want, or you can tighten the easing so they slow down and maintain that position...tell me which you need.
- fate_0
Also, for reference, I don't know if joyride's code is straight from the source, but here's the _xmouse method. I should have read better, because you don't really need this code coffeesoy. It seems you can handle this much yourself...
- coffeesoy0
Thanks so much guys..
fate-that is great however i dont want the circles to alighn when the cursor gets to the middle.
joyride- don't know where to begin but ill give it a whirl...
do i just make the tweens then apply that action to all of the layers? does that code include the easing effect
- fate_0
Trust me, you do not want joyride's code. No easing, nothing is scripted. The movement is dependent on predefined frames.
If all you're wanting to do is change WHERE they line up, you can modify the variable xOffset in my FLA to movie where they lineup around.
Of course, simply displacing the actual contents of the MC's manually would work too.
- coffeesoy0
it would be so much easier with your code however i need it so that they dont end up lining up AT ALL. i need them in scattered x positions. for example:
- fate_0
Just play with the offsetting of the X, I'm sure you can get it. even if it means setting up functions for each with unique xOffsets.
- milo0
$5...!
I think you'd be better off going here...
http://www.getafreelancer.com/