A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: throw stick man (help)

  1. #1
    Junior Member
    Join Date
    Sep 2005
    Posts
    7

    throw stick man (help)

    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

  2. #2
    Senior Member RangrJay's Avatar
    Join Date
    Sep 2005
    Location
    Las Vegas
    Posts
    163
    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

  3. #3
    Junior Member
    Join Date
    Sep 2005
    Posts
    7
    ok i i ripped and when i tryed to preview it be4 ii edited anything it wont play

  4. #4
    Flash / Php game designer
    Join Date
    Mar 2005
    Location
    UK
    Posts
    253
    Thats advanced actionscript, you will never get it working if you're new.

  5. #5
    Registered Deviant
    Join Date
    Sep 2004
    Location
    Cornelius, OR, USA
    Posts
    280
    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.
    If you can read this, you're in the right place.

  6. #6
    Banned NTD's Avatar
    Join Date
    Feb 2004
    Posts
    3,438
    Hi,

    Seems like an application of spring physics. Jbum was great at this kind of stuff.......

    http://flashkit.com/board/showthread.php?t=544991

    http://krazydad.com/bestiary/bestiar...ngBuilder.html

    hope it's useful
    NTD

  7. #7
    Flash programmer
    Join Date
    Jul 2005
    Location
    Sweden
    Posts
    48
    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.

    Good luck

    The Wazaa
    Attached Files Attached Files
    Have a nice day - The Wazaa
    My portfolio

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center