HOME | DD

Published: 2007-06-02 13:30:11 +0000 UTC; Views: 23314; Favourites: 85; Downloads: 2137
Redirect to original
Description
Flash player 9 needed: [link]So thats how [link] should have looked
I found my mistake. So I calculate parametrs for bazier splines to make this curve. In Bezier follower i always was using last point of the curve to calculate direction. That lead to that funny effect that whole curve was shaking after the change of last point.
Controls:
Mouse
Mouse left button - stabilization on(off by default)
Up arrow - add one spaghetti
Down arrow - eat one spaghetti
Edited:
So I made it smaller so it would not lag with cool bitmap effect I added
Edited: So development name of this things was Flying threads. After i made compelte version *divBy0 said that it looks like radioactive macaroni
Related content
Comments: 113
wonderwhy-ER In reply to ??? [2007-06-02 19:09:12 +0000 UTC]
Ok i will make optional thing that adds such dragable point or removes it.
👍: 0 ⏩: 0
divby0 In reply to wonderwhy-ER [2007-06-02 18:23:41 +0000 UTC]
because of the way it gets closer and closer to the center but never really reaches it, and the ratio of size if i can get it going in a circle (instead of an ellipse)
👍: 0 ⏩: 1
wonderwhy-ER In reply to divby0 [2007-06-02 19:12:18 +0000 UTC]
Yeah the way it moves to the cursor is theoretecly infinite but after some time it will reach it becose no infinitis are possible for formal things such as math and programming. In this case the precission of coordinate is limmited.
👍: 0 ⏩: 1
omfgpants In reply to ??? [2007-06-02 13:32:48 +0000 UTC]
ooooh.. i would really really appreciate if i could get the .fla file
👍: 0 ⏩: 1
wonderwhy-ER In reply to omfgpants [2007-06-02 13:37:18 +0000 UTC]
Hmm. Sorry but Bezier interpolation function is creation i don't intend to give
👍: 0 ⏩: 1
omfgpants In reply to wonderwhy-ER [2007-06-02 13:41:03 +0000 UTC]
oohhh... can you give me a hint on how you did it??? with the coding and stuff??/ and I'll try and do it myself.
👍: 0 ⏩: 1
wonderwhy-ER In reply to omfgpants [2007-06-02 15:25:47 +0000 UTC]
You will need 2 things for that. First is to understand how flash curveTo goes. Than you will need to udnerstand waht spline itnerpolation is and to use flash curveTo to make a function which retrives an array of points and draws a curve created from cubic Bezier splines.
Here is good artice about Bezier and Flash curveTo. You can find a demo there: [link]
Here is article about Bezier curves on wiki: [link]
And here is article on wiki about interpolation: [link]
So in flash curveTo is a cuadric Bezier. For spline interpolation you need to make a cubic Bezier based on cuadric one. Then you need to udnerstand how to use cuadric Bezier as a spline for interpolation algorithms. Tough all tha may not be easy if you are not good in math. Good luck. If you will make something than send me a link
👍: 0 ⏩: 0
<= Prev |