A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Having a character jump

  1. #1
    Junior Member
    Join Date
    Nov 2004
    Posts
    8

    Having a character jump

    Would you guys reccomend animating a jumping action in a platformer style game. Or using action script. Would this help out when running hitTest's and other functions to get a charcter to jump onto obstacles.

  2. #2
    Senior Member jbum's Avatar
    Join Date
    Feb 2004
    Location
    Los Angeles
    Posts
    2,920
    If it were me, I would animate the character moving in place (as if jumping - his legs bending etc.), but use actionscript to control his _x/_y position.

    An advantage of this system is that the _x and _y of the character are always the same in relation to his body, and can be used for point hit testing.

    Also, I can use more physically based variables to control his jumping - giving him extra height, having him jump off of springs, etc.
    Last edited by jbum; 11-27-2004 at 02:09 PM.

  3. #3
    Junior Member
    Join Date
    Nov 2004
    Posts
    8
    Thanks, that's what I was thinking. And fast original reply too.

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