User Tag List

Results 1 to 3 of 3

Thread: Problem with Max Velocity.

  1. #1
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Problem with Max Velocity.

    I'm using the PMO for the players movement engine, btw.

    Anyways, heres the deal:

    When my player is running and jumps, its max velocity is set to its current velocity just before jumping. I also have a value (1,2) telling the character to continue moving right or left after jumping, even when there is no user input.*They are assigned properly so I know they aren't causing the problem.

    And my problem:

    If the character is facing right, and executes a running jump, I can hold left in mid air to slowly move back to the left. However, this doesn't work when jumping to the left and then trying to move right, because the max velocity is a negative (players max velocity moving right is 240 and left is -240. So something about the MAX velocity being a negative number prevents my player from moving to the right.

    I've tried using a different value when jumping to the left(maxvelocity*2/maxvelocity) to get the exact velocity, but negative, and that didn't work.

    I've also tried a bunch of other stuff I can't exactly recall, but none of it did the trick!

    Any suggestions? Thanks in advance!




  2. #2
    Clickteam Clickteam
    Olivier's Avatar
    Join Date
    Jun 2006
    Posts
    3,000
    Mentioned
    9 Post(s)
    Tagged
    1 Thread(s)

    Re: Problem with Max Velocity.

    As fas as I can remember, the MaxXVelocity value is absolute. So if you set it at 240, then XVelocity (the horizontal speed) won't ever exceed 240 if the player is going to the right, or -240 if the player is going to the left.
    EDIT: So there's really no need to set MaxXVelocity to a negative value.

  3. #3
    No Products Registered

    Join Date
    Jun 2007
    Posts
    323
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Problem with Max Velocity.

    Ah your right, I didn't add Abs() to the velocities, duh!! Thanks!

Similar Threads

  1. Velocity value as Float?
    By danjo in forum Fusion 2.5
    Replies: 2
    Last Post: 26th October 2013, 08:15 AM
  2. PMO additional X/Y velocity
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 24th November 2011, 04:48 AM
  3. pmo Y velocity bug
    By keokeo in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 24th November 2010, 04:51 PM
  4. Angles and Velocity
    By DizzyDoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 3rd November 2006, 08:06 PM

Posting Permissions

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