Custom Movement Gravity Help

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Hello, I am new to MMF2 and have a question regarding gravity in my custom movement. I used Please login to see this link. to make a simple custom movement for my platform game. I would like the player to fall faster than he jumps up, so he ascends at, say, one pixel per frame and then falls at 2 pixels per frame. I have been trying to figure out how to do this for a few hours but I can't find any resources to help me. I have experimented with the numbers in the program but I can't get it to work. Any help would be greatly appreciated. Attached is my .mfa of the movement.

    Thanks much,
    Sp33d

    Please login to see this attachment.

    Edited 2 times, last by Sp33d (July 5, 2013 at 5:00 PM).

  • change line 8 to "Grav of Player<0 : add 0.25 to Grav"
    Then add a new event: "Grav of Player>=0 and Grav of Player<12 : add 0.5 to Grav"

    That way, the ascent of the jump is the same as the original code, but once you reach the apex of the jump, you accelerate twice as fast, and your max falling speed is 2x of the original code.

    - Fun is fun.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!