PDA

View Full Version : interactive animation


dendk
11-03-2003, 09:51 PM
Interactive animation:
If I have an obect shape tweened over about 5 or 6 frames and have converted the frames to keys, how can I control the shape change I have created by moving the mouse curser? ie. A ball sits in the field untill the curser touches it. If the curser is lowered, the ball squashes, giving the illusion that the curser is squashing the ball and when the curser is raised, the ball 'unsquashes'.

Colin Campbell
11-03-2003, 10:40 PM
eek... your post is a bit vague. This is about the 3rd time I've looked at it today.

I'm guessing this could be done by imbedding movieclips within each other, and having the movieclips advance in frames as the main movieclip goes. Try experimenting.

junahu
11-04-2003, 08:01 AM
I agree. A little vague but try this anyhow.

on the movieclip
onClipEvent(EnterFrame)
{
if(this.hitTest(_root._ymouse,_root._xmouse,true)
{
gotoAndStop(_currentframe + 1)
}
else
{
gotoAndStop(_currentframe - 1)
}
}

definately not perfect but it could work... possibly