User Tag List

Results 1 to 5 of 5

Thread: Double Jump with custom platform movement

  1. #1
    Clicker Fusion 2.5
    TheHandwovenBox's Avatar
    Join Date
    Mar 2018
    Location
    Kentucky, USA
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Double Jump with custom platform movement

    Hello, in this game I am making, you can double jump as one of the characters. I tried making it so that while the character value is set for that character and the object is on the ground, it sets "DoubleJump" to 1. If you jump midair with doublejump as 1, and the right character value, you would jump again. However, nothing happens, and removing the double jump limiter allows me to double jump, but it can be done forever without the limiter. I think I have an issue or conflict relating to the values, but I am not sure. The first line of the "Class Physics" group and bottom of the "Physics" group are where the related events are located.

    Double Jump Problem.mfa

  2. #2
    Clicker Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)
    alexexhowl's Avatar
    Join Date
    Jan 2015
    Location
    RU, YKT
    Posts
    348
    Mentioned
    5 Post(s)
    Tagged
    0 Thread(s)
    @TheHandwovenBox you need to change logic of your double jump.

    help.png

  3. #3
    Clicker Fusion 2.5
    TheHandwovenBox's Avatar
    Join Date
    Mar 2018
    Location
    Kentucky, USA
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you very much! I'm curious as to how this fixed it, but I think I can figure it out

  4. #4
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    642
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Your doublejump event is causing the player to doublejump as soon as his feet leave the ground, so your value is getting reset which makes it seem like you're only regularly jumping. Alexe's fix takes care of this by adding an extra "frame" onto the doublejump so you can jump twice. I believe this isn't desirable if your doublejump might have a different strength than your normal jump.

    A workaround for this is to not use Fusion's built-in "upon pressing a button" condition, which has issues with keeping keystate. I use an active object and alterable values to record keypresses instead, so a single button press will only trigger once. This can of course be done for all keys you need.

    doublejump example.mfa

  5. #5
    Clicker Fusion 2.5
    TheHandwovenBox's Avatar
    Join Date
    Mar 2018
    Location
    Kentucky, USA
    Posts
    42
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you, very helpful

Similar Threads

  1. Replies: 20
    Last Post: 4th April 2018, 03:09 AM
  2. DavidN's Custom Platform Movement jump
    By Emerson3 in forum Fusion 2.5
    Replies: 6
    Last Post: 3rd June 2015, 04:17 PM
  3. Double jump with standard platform movement
    By K1kk0z90 in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 7th September 2010, 11:33 AM
  4. double jump with a platform object
    By rhoymand in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 17th June 2008, 01:22 AM

Posting Permissions

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