-
Speed up a Tween (cs4 AS3)
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
-
Tags for this Thread
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
Powered by
vBulletin® Version 4.1.9
Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.
Content Relevant URLs by
vBSEO 3.6.0
Copyright 2011 Photoshop Gurus Forum. All rights reserved.