Max Speed X and Max Speed Y

ToastKittenToastKitten Member Posts: 360
edited November -1 in Working with GS (Mac)
Let's say you have a character that uses the linear velocity function to move. If you want that character to jump at his full height with max speed enabled, he cannot be moving to the left or right at all. With the X and Y max speed options, you could be going however fast to the left or right and still jump to your highest point.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    not a bad idea but your example actually does not have to do with max speed. Using change velocity and move do not allow two movements at the same time. You need to use acceleration. Here's what I would do:

    RULE - when keyboard right is pressed
    -----Rule - when linear.velocity.X is < 300
    ---------accelerate 2000 0 to scene

    RULE - when keyboard left is pressed
    -----Rule - when linear.velocity.X is < 300
    ---------accelerate 2000 1800 to scene

    Change the 300 to what you like. This method feels like move (because of the high acceleration it will quickly get to 300 and then stay at that speed). The key is to play with DRAG and FRICTION.

    For jumping check out my post in this thread:

    http://gamesalad.com/forums/topic.php?id=9646
Sign In or Register to comment.