User Tag List

Results 1 to 10 of 10

Thread: Limiting Jumps

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    645
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Limiting Jumps

    I'm using the Platform Movement Object extension for a platformer and I'm trying to make a double jump. Unfortunately I can't figure out a way to limit the number of jumps and make it work. I currently have a counter that counts jumps, but I can't figure out how to negate the jump control until my character is back on the ground. Any suggestions?

  2. #2
    No Products Registered

    Join Date
    Jan 2009
    Location
    Usa
    Posts
    190
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    u cant make a character do a double jump using the platform movement built within the game

    either u have to use ur own custom movement or get the Platform movement object

  3. #3
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    Dsilvers, you should see DavidN's platform tutorial over in the tutorial section.

    Angelfox:

    Quote Originally Posted by dsilvers
    I'm using the Platform Movement Object extension for a platformer and I'm trying to make a double jump.

  4. #4
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    The easiest way I do it (using the Platform Movement Object), is just make a tiny sensor that is always at the players feet (but it must sit a little below the feet so it can overlap backdrops. This will be your checker to see if the player has landed.

    Then, add some conditions that do this (might need to tweak for your engine but this is the basic idea):
    Pressed jump
    +PMO: Player is standing on ground
    ---> Jump

    Pressed jump
    +PMO: (negate)Player is standing on ground
    +(Alterable Value)DoubleJumped = 0
    ---> Jump, Set Alterable value DoubleJumped to 1

    Sensor Object is overlapping a backdrop
    + Doublejumped = 1
    ---> Set Doublejumped = 0


    That in theory should work for you. I've seen people do it with flags as well, but I have the worst luck with flags and they never seem to work for me, so I just use Alt Values.


  5. #5
    Clicker Install Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Darkhog's Avatar
    Join Date
    Jan 2009
    Location
    /dev/null
    Posts
    417
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    Dsilver, I have present for you...

    Take:
    http://dl.getdropbox.com/u/210143/Double%20Jump.mfa

  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Location
    Land of raging rockets
    Posts
    1,231
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    The easiest way I do it (using the Platform Movement Object), is just make a tiny sensor that is always at the players feet (but it must sit a little below the feet so it can overlap backdrops. This will be your checker to see if the player has landed.
    I wonder if that is nescessary -
    I think you can just replace
    Code:
    Sensor Object is overlapping a backdrop
    + Doublejumped = 1
    ---> Set Doublejumped = 0
    with
    Code:
    +PMO: Player is standing on ground
    ---> Set Doublejumped = 0

  7. #7
    Clicker Fusion 2.5 DeveloperFusion 2.5 DeveloperAndroid Export ModuleiOS Export ModuleXNA Export Module
    DistantJ's Avatar
    Join Date
    Jan 2008
    Location
    Gloucester, UK
    Posts
    2,144
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    Player is standing on ground: Set Alterable Value "Jump" to 0.

    User presses jump key + Alterable Value "Jump" < 2 + Only one action when event loops: Jump action, Add 1 to Alterable Value "Jump".

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleMac Export Module
    dsilvers's Avatar
    Join Date
    Jun 2008
    Location
    Boston, MA
    Posts
    645
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    The double jump now works! Thanks so much everybody for your help. Did it with the flags, works and feels great.

  9. #9
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    For future reference, you can use the collision mask instead of detectors.

  10. #10
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export Module
    Chaos's Avatar
    Join Date
    Aug 2006
    Location
    Burnsville, MN, USA
    Posts
    806
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Limiting Jumps

    Ahh, true. I thought there was some reason I kept using them... nostalgia perhaps. lol

    Well, glad they aren't required then anymore.

Similar Threads

  1. CrazyCrab (finally) jumps into the App Store!
    By Olivier in forum iOS Released Games & Apps
    Replies: 52
    Last Post: 14th June 2013, 06:29 PM
  2. Blasted Variable Jumps!
    By TheFieryPlumber in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 31st May 2013, 11:37 AM
  3. Jumps in the wrong direction. Cant figure this one out :/
    By Outcast in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th July 2012, 08:06 PM
  4. Sample volume jumps back to 100%
    By RayMarble in forum SWF/Flash Export Module Version 2.0
    Replies: 8
    Last Post: 20th March 2010, 07:35 AM
  5. Custom jumps using PMO
    By Atherton in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 27th July 2009, 06:09 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
  •