User Tag List

Results 1 to 4 of 4

Thread: Custom Movement Gravity Help

  1. #1
    No Products Registered

    Join Date
    Nov 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Custom Movement Gravity Help

    Hello, I am new to MMF2 and have a question regarding gravity in my custom movement. I used this tutorial 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

    Gravity_Help.mfa

  2. #2
    No Products Registered

    Join Date
    Nov 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Anyone? I'm still trying to figure it out. Seems like it would be easy but I have no idea how to do it and endless experimenting hasn't been helpful so far.

  3. #3
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Pineapple's Avatar
    Join Date
    Oct 2010
    Posts
    431
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  4. #4
    No Products Registered

    Join Date
    Nov 2012
    Posts
    26
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks so much! That works perfectly! Now I can get to creating the levels.

    -Sp33d

Similar Threads

  1. Platform Movement Object, reverse gravity/jumping?
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 30th October 2012, 06:08 PM
  2. gravity movement question
    By zordork in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 6th June 2012, 08:19 PM
  3. Custom Gravity for Puzzle Game
    By Xeeko in forum File Archive
    Replies: 1
    Last Post: 29th September 2011, 06:05 PM
  4. Pinball movement reverse gravity
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 2nd May 2011, 04:57 PM
  5. Bouncing Ball movement with simple Gravity
    By Sarah in forum File Archive
    Replies: 3
    Last Post: 16th July 2007, 01:00 PM

Tags for this Thread

Posting Permissions

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