Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I animate a ball coming towards the screen

Status
Not open for further replies.

kampala

Programmer
Jul 26, 2002
1
GB
I am a green guffy who needs some help! How can I animate a ball that starts small and gets bigger as it comes towards me.

Thanks Guys!
 
Either use a motion tween with the object scaled small in the first keyframe and large in the end keyframe and let Flash work out the enlarging for you or convert the ball graphic to a movieclip and attach some code like this which will scale the ball to infinity:

onClipEvent(enterFrame){
_xscale*=1.1;
_yscale=_xscale;
}
 
Motion tween or scaling up a movie clip holding the ball! Regards,

new.gif
 
You beat me to it Wang and in the right thread... Unlike yesterday! Did you notice your answer and my reply in this thread250-321534 ;-) Regards,

new.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top