This experiment was in my mind for a long time. I don’t know a thing about the bezier curves and the Math, so that’s code I found and use. For me the most important learning curve was how to attach an library asset to a line I draw. This is just the beginning. What I want to accomplish in the end is that when I draw on screen my library asset will follow the line and stops at the end. Just to see how it adapts the gesture I make on screen. And…to make this a class that extends Hype Framework.
I used Hype to color, give a bit of extra feel with fixedVibration and needed the BitmapCanvas and clipContainer to let the movie run smooth. 3 clips that give a bit of insight of my process.
Version 1 an curve which you can move with your mouse and my library asset following that curve.
Version 2 added some color and fade-out, drag the curve with your mouse
Version 3 added also FixedVibration, drag the curve with your mouse