1: Drag a symbol and 'throw' it so that the object continues moving at the velocity of finger swipe after the user removes their hand from the screen, slowly decreasing with a pre defined 'inertia' variable.
2: Drag a symbol away from its initial location so that it 'springs' back to it's initial starting point.
3: 'Hit test' principles so that if the user had 'thrown' a symbol I could detect if it had collided with a 'floor' or 'wall' and it would then bounce or would affect the inertia.
4: Smooth drag and drop so that the symbol you are 'carrying' is subjected to a easing formula that makes the motion smoother and less erratic than whan just dragging the actual object directly.
5: Drag and drop in a constrained arc with the symbol rotating back to it's original point as if it were a pendulum. So, the higher you initially drag the item, the faster it would swing back, initially overshooting it's original point, until an inertia variable would eventually mean it would settle at it's origin.
I've seen a few books about EDGE in general, but they seem to be more about how to use the drawing tools and perform basic interactions (on click stop at frame whatever etc).
I guess I need a book on java script, but I'm very keen for something that can communicate how to do these things directly within edge (so wether you enter the code on frame update or touch start etc)
If anybody out there knows of a useful resource to achieve these kind of results I woudl be REALLY greatful. I know there are some posts on the forums that detail some of these things, but I need something that explains in a simple way how and why you do something so that I can properly grasp it.
Well, I've found a great blog post by a guy called Burak Kanber on how to use Hooke's law in javescript.
The principles all make sense to me and I can kind of see what's going on with the javescript (whan I say, 'kind of', I mean pretty vaguely) but I can't fathom out how to apply that javescript in Edge. Can anyone describe how to apply this code to Edge directly - ie. Where should I put each section of code to ensure that the drag actions work etc.?
I don't need the canvas stuff as I'll be using graphic objects anyway.
Any help would be massively apreciated!