i want to make a flash where i can pickup a stick man by his legs, arms, and head and be able to swing and throw him around.
im not too good with coding but im willing to learn. also once we get the basics if i can push a button and make another stick man appear and when he hits the walls/floor blood squirts out.
thanks in advance. if u want to help me out personally hit me up on aim:a1i954
if you want realistic movement, you need to learn how the physics engine works. look for a flash game called "bubble girl" this is similar to what you describe. you should rip the file and look at the code. its pretty rediculous.
but that's probably all your gonna get from here. best of luck
Xero Patience Studios
Web Design
Software Development
Graphic/Logo Design
Wow, what great responses... "don't bother" and "steal someone else's code".
My suggestion, since I don't know how well you know ActionScript is to start with the basics, adding movie clips to the stage, using onMouseDown and onMouseUp, startDrag and stopDrag. You can access the online documentation for those functions in the MovieClip reference at LiveDocs - http://livedocs.../00002436.html
From there, I'd work on calculating speed of motion using the onMouseMove event and the _xmouse and _ymouse properties so you can emulate things like how the feet remain still if you grab by the head and move left or right until the body swings out to about 45 degress.
To take it further than that, I'd move in to the Math and Physics forum, or search the web for Inverse Kinematics and Rag-doll physics.
Sure, they're complex subjects, but there's no way to learn until you do it. Just because it's a big task doesn't mean it can't be done, just he'll need our help to do it! And not by stealing code, either.
I've got a commented version of what you are looking for, it's actually one of the first things I did in flash ^^. Here are a tutorial on the tecnique that I used: http://www.gamasutra.com/resource_gu...obson_01.shtml
See the attached file, and if you need any help; just ask.