Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > General > Animation and Effects

Reply
 
Thread Tools Rate Thread Display Modes
Old 11-20-2006, 07:35 PM   #1
BraBo
Registered User
 
Join Date: May 2005
Posts: 9
Default Animating, not knowing where?!?!?!

Hi,
I need your help in something I need sorting.
How can I make an animation with an object, if I don't know where it's going to be in the start of the animation, or where it's going to be at it's end?!?!

The beginning it's quite straight forward, just alter the X and Y from the object, and then animate it. But what about the ending point?!

Cheers for the help.
BraBo is offline   Reply With Quote
Old 11-20-2006, 09:03 PM   #2
Noct
Toys in the Attic...
 
Noct's Avatar
 
Join Date: Oct 2006
Location: NY
Posts: 3,017
Default

This might be one of the oddest posts I have ever seen.

Exactly how can you animate something without knowing where it starts or ends?

Unless, are you asking about coding something dynamically?
Like the user inputs the start/end point and your app does the tween?

Or is this one of those philosophical conversations, like the galaxy being just a molecule in some larger particle mass...
Noct is offline   Reply With Quote
Old 11-21-2006, 10:08 AM   #3
peter5
Registered User
 
Join Date: Dec 2005
Posts: 101
Default

if you are not sure of the start position you could (I am assuming you are trying to do this in AS) move the object relative to its own position.


startPosX = object._x;
startPosY = object._y;

//move the object 100 pixels
object._x = startPosX + 100;
peter5 is offline   Reply With Quote
Old 11-24-2006, 03:38 PM   #4
BraBo
Registered User
 
Join Date: May 2005
Posts: 9
Default

Not exactly... That wouldn't do an animation, would just re-position the object.
BraBo is offline   Reply With Quote
Old 11-24-2006, 03:46 PM   #5
BraBo
Registered User
 
Join Date: May 2005
Posts: 9
Default

Quote:
Originally Posted by Noct View Post
Exactly how can you animate something without knowing where it starts or ends?
But you will know where it will start, and where it will end, you'll just don't know it at "design time".

Quote:
Originally Posted by Noct View Post
Unless, are you asking about coding something dynamically?
Like the user inputs the start/end point and your app does the tween?
That is exactly what I mean.
You have a specific object, in which you do an animation, for example.
Object._x=0;
Object._y=0;
Then, the Object moves 100 x units (ex. pixels) forward, being at position:
Object._x=100;
Object._y=0;
You add an animation to the object. "light" out, and "heavy" in, with a motion tween in the middle.

Now, the problem is, I want to do several animations in the same object, in which I will not know the actual position at a certain period of the application, and not know the endind point either.
This meaning that, I want to supply the X and Y vars for the ending position object, and let it animate according to it's current position, using it's predefined animation.
BraBo is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
child MCs stop animating, but timeline is moving mex ActionScript 2.0 2 03-10-2006 02:44 AM
Animating Conveyor Belt aeris ActionScript 2.0 2 01-18-2005 05:16 PM
Questions for toturial: Animating Text By Using ActionScript myecomdk ActionScript 1.0 (and below) 13 02-20-2004 06:02 AM
Animating Text with AS tutorial lokjah ActionScript 1.0 (and below) 1 04-28-2003 02:15 PM
Animating Text with Actionscript Adderal Simple Stuff (Newbies) 2 12-24-2001 04:51 PM


All times are GMT. The time now is 12:39 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.