What's new
Photoshop Gurus Forum

Welcome to Photoshop Gurus forum. Register a free account today to become a member! It's completely free. Once signed in, you'll enjoy an ad-free experience and be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Speed up a Tween (cs4 AS3)


mdermez

New Member
Messages
2
Likes
0
I have an animated fish crossing the screen. I made that using the animated fish (movieclip1) following a path on a guide layer. All these are into another movieclip (2).
I want in mouse hover condition to accelerate the tween. In other words I want the user to point the fish with the mouse (mouse hover) and then the fish tries to escape (tween acceleration). How can I accelerate the tween?

Keep in mind that in fish movieclip(1) I have more than one Tweens. So the code must be for selected tween (named by frame label).

Another thing is that acceleration mustn't be directly from 0 to 1. There must be an ease on the start and on the end of acceleration so it can be more realistic.

I am not related on programming so I would like a complete answer (not just directions)

My thinking of the code was:

(if it's needed I'll have to import transitions.ease and tween)

Function for mouse hover condition
--> inside that function I have to define (I think) another function about acceleration of the tween

Then I have to add eventListener for the object.

So my main question for the code is focused on tween acceleration
 

Back
Top