FORUMS: list search recent posts

Draw a line - leave a trail

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Aaron Brady
Draw a line - leave a trail
on Apr 4, 2008 at 8:15:45 pm

I have a basic line drawing animation - a ball moves along a motion guide path and leaves a line. What's a good way to do this with ActionScript 2.0?

So far, I'm working with this AS:
lineStyle(3, 0x666666, 100);

-where ball_mc is a ball moving along a guide layer motion path, creating a trail. This is like Pencil v.2 Drawing tutorial, except using actionscript rather than keyframing a mask.
This would look like an etch-a-sketch, or Tron game, but would be guided by a motion path in a guide layer

Return to posts index

Benjamin Tattersley
Re: Draw a line - leave a trail
on Apr 19, 2008 at 12:23:42 pm

i know a way to do this in AS3 using the drawing api. You can set the draw position to be at the position of the ball and loop it or set a timer to give you adjustable spacing between the dots the line will be made up of. if you like, email me for some smaple code:

Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2018 All Rights Reserved