Search the Community
Showing results for tags 'follow movieclip'.
-
Hi there, I would like to have the same effect as on this tutorial: https://codepen.io/PointC/pen/c07761a17f94434f1229e11e798f1a3d Everything is going well, except the drawing of the dashed line. I think I took all the necessary information, and even when I'm copying the code from codepen, the dashed line will not show up. If is remove the part 'mask="url(#theMask)"', the dashed path is showing up. Can somebody please help me? Thanks in advance! Below the result of my code:
- 9 replies
-
- drawsvgplugin
- follow movieclip
-
(and 3 more)
Tagged with:
-
Hi, I have a script I wrote where there are going to be multiple soldiers fighting, (represented by rectangles). In this example, one rectangle runs away, another one follows it. Is this the most efficient way to write this? Can I use TweenLite for the follow part? -------------- import com.greensock.TweenLite; import com.greensock.easing.*; //rect 1 runs away TweenLite.to(object1, 4, {x:84, y:-160}); addEventListener(Event.ENTER_FRAME, loop); //rect 2 follows rect 1 function loop(e:Event):void{ if(object1.x<object2.x){ object2.x-=10; }else{ object2.x=object1.x; } if(object1.y<object2.y){ object2.y-=10; }else{ object2.y=object1.y-32; } }