User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: How to find the vertical speed of an active?

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,155
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)
    You can maybe try something like this,
    in this specific event order:


    always
    >>> set player Y position to Y("player") +1

    player overlapping backdrop
    OR
    player overlapping active ground
    >>> player is on ground

    always >>> set player Y position to Y("player")-1


    in short, we bring the player 1 pixel down,
    if we detect he's overlapping backdrop or active (ground)
    it means he is "over the ground"
    then we place him back at its original Y position


    EDIT____

    here's a quick example:

    test_ground.mfa


    side note:
    this approach would not work as precisely if the "active ground" is a moving object,
    due to the overlap timing issue in Fusion (moving ground position will be tested as it was from previous frame)

    if your "active" ground is fixed you won't have any issue though!

  2. #12
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    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)
    Fuuriokun's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    243
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    The problem is: It detects if the side touched too, so this example would work better using a detector.

  3. #13
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    643
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    If your collision detection is working properly, the method Schrodinger posted shouldn't check if the side is touched; only the ground 1 pixel underneath. You won't need a detector unless you prefer the "ground" check to be narrower/wider than your player's hitbox.

  4. #14
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    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)
    Fuuriokun's Avatar
    Join Date
    May 2010
    Location
    Brazil
    Posts
    243
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Really? Maybe the animation has given a false positive, changing the player to a box shape seen to work fine. Thanks

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. [HowTo] Find the Height of an active Object?
    By BackStaged in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 1st October 2010, 03:24 AM
  2. Animation speed/frame bug in an active?
    By AdamDobay in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 29th August 2010, 04:20 PM
  3. Subapps, Active Boxes = HWA speed killers?
    By Blizna in forum Hardware Accelerated Runtime
    Replies: 5
    Last Post: 9th June 2009, 09:57 AM
  4. slider to control speed of active element.
    By tourmaline in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 4th May 2007, 09:10 PM
  5. Speed of active object
    By Dariorox in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 29th November 2006, 12:04 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
  •