Time for me to post another one of my recent experiments!!! :beam:
fluid_0ne noticed in a thread that it is one of my desires to learn AI motion in Flash (things like moving bugs and whatnot…hehe), he was nice enough to PM me with a link to a tutorial on something like it that I wanted to do.
I was ecstatic, and I thank him very much for that. The tutorial itself was hard to follow kind of because it doesn’t go in depth what to do so I kept doing the wrong thing. Ok ok, I will stop babbling, the tutorial can be found here…
Alright, now MY version is a bit different. It is different because the tutorial above is for Flash 5, and I decided to take that tutorial, and convert it to MX. So my experiment was to create the entire spider out of AS, and use no movie clips, just the drawing API and functions. I think I did it pretty successfully. The only things on the stage are the text and the toggle button.
Speaking of toggle button, to use this you can just go to the link and watch, or you can click on the little blue square toggle button to toggle the random motion on and off. With the random motion off you can drag the spider anywhere on the stage that you want. (please note you can still drag the spider when random motion is on, but he keeps trying to run to the same point ;))
Syko: Its not the FPS thats the problem, I set the speed of the easing to be slow because I wanted it to go slow. I originally had it at a higher FPS so the slow speed wasn’t as slow as it is now, I forgot to change the speed when I lowered the FPS. I am not sure if I am going to change it back or not, I kinda like it, I am still thinking about that.
Rev: I have no idea what I would use it for either. I just really like AI motion and I really want to get into it, I think this is a pretty good start. My friend said this would make a great draggable menu (if I removed the random motion), where the legs are the buttons. Interesting idea, but seems tacky and annoying IMO.
Jubba: Yes… I am a dork :geek: . And as for Pom asking me for answers… YEAH RIGHT!!! , but thanks for the support anyway
Hehe, thanks Phil. As for a blinking eye effect. I don’t think I am ready to tackle that with the drawing API in AS. It is hard enough to create a circle.
BTW: Thanks to Senocular for the circle code!!! I got it from him while we were building the line tool in Flash a while back. This circle code ROCKS!
*Originally posted by Jubba *
**Pretty soon Pom will be asking you for answers… **
I guess so… :sure:
Anyway, that’s very nice, Lost. I had a look at that tutorial when I was in Singapore, and I also found it confusing sometimes. I’m glad you could work it out. There’s something I find strange though: why is it that the legs follow the head and not the other way around?
Ilyas: You know I thought the same exact thing. I honestly have no clue why the legs follow the body instead of the other way around, but thats the way the tutorial works. The legs are positioned randomly according to a proximity around the body area, and if the body gets out of that proximity area the legs get repositioned.
I suppose it would be harder to move all 8 legs to random new positions and then move the body to an area there.