Results 1 to 3 of 3

Thread: How to make smooth Character movement

  1. #1

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172

    How to make smooth Character movement

    At the momen i am just moving my players X Y and Z axis 1 point (whatever) at a time when i press left and right , jumping looks good up to now.. but making a left/right movement looks crappy (also no animation but that is a second thing to do) how can i make a nice way to move my character?
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  2. #2
    Lively Member FireSlash518's Avatar
    Join Date
    Nov 2001
    Posts
    67
    I usually use acceleration and deceleration.

    The character starts moving 1 pixel, and gains speed as he moves until reaching a final speed. deceleration is a bit trickier since you dont want it to affect the gameplay too much.

    Leader of the Maxoverkill Mods
    -Fire§lash

  3. #3
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    you could make the frames interpolate...
    like this:
    X = (X1 + X2) / 2

    it gets the X position in between the two frames...
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

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