User Tag List

Results 1 to 6 of 6

Thread: PMO going uphill flag?

  1. #1
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)
    elvisish's Avatar
    Join Date
    Oct 2014
    Posts
    824
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)

    PMO going uphill flag?

    I need to test and set a value if PMO is going uphill. phi told me to use something to this effect:
    "Measure gradient between Y of a few milliseconds before and Y present.
    every 5 ms
    store B in C
    store A in B
    store current Y in A
    if A - B == B - C && A > B, player is on gradient"
    But I have no idea how to implement this. Could someone assist me with an example?

  2. #2
    Clicker Fusion 2.5Fusion 2.5 Mac
    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)
    zip2kx's Avatar
    Join Date
    Jun 2015
    Posts
    845
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    He's teling you to store the current Y value of an object in alt.value A and then constantly moving it down to value B, then C. This way you got your 3 last Y positions.

    The better question is what are you trying to achieve?

  3. #3
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)
    elvisish's Avatar
    Join Date
    Oct 2014
    Posts
    824
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by zip2kx View Post
    He's teling you to store the current Y value of an object in alt.value A and then constantly moving it down to value B, then C. This way you got your 3 last Y positions.

    The better question is what are you trying to achieve?
    I want to be able to change to an animation, should the PMO player be going up a slope.

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Nov 2013
    Location
    San Diego, CA
    Posts
    42
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hey check out this example. It is code to have the character rotate toward the angle of the slope, up and down. Not exactly what you are asking, but this might be a good place to start. Good luck!

    https://drive.google.com/file/d/0B8p...ew?usp=sharing

    Edit: I forgot you could upload files to the forum, here you go! sonic worlds angles_1.mfa

  5. #5
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)
    elvisish's Avatar
    Join Date
    Oct 2014
    Posts
    824
    Mentioned
    19 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by maxx View Post
    Hey check out this example. It is code to have the character rotate toward the angle of the slope, up and down. Not exactly what you are asking, but this might be a good place to start. Good luck!

    https://drive.google.com/file/d/0B8p...ew?usp=sharing

    Edit: I forgot you could upload files to the forum, here you go! sonic worlds angles_1.mfa
    Wow, thanks SOO much! This is really useful, nice to have simply the angles part of the code, much easier to read!

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export Module

    Join Date
    Nov 2013
    Location
    San Diego, CA
    Posts
    42
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You're welcome! Sonic worlds has so much great code, I wish someone (with more skill than myself) would separate each individual feature from the main code, like this example has done

    Sent from my SAMSUNG-SM-G928A using Tapatalk

Similar Threads

  1. Flag limit / flag values looping
    By butterfingers in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 2nd October 2014, 11:03 PM
  2. How to make a uphill or downhill platform ?
    By ShukoSP in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th May 2014, 02:06 PM
  3. [REQ] Set flag by expression
    By Olivier in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 28th April 2013, 07:48 PM
  4. I need more flag
    By MEHRDAD in forum Multimedia Fusion 2 - Technical Support
    Replies: 24
    Last Post: 23rd January 2012, 06:37 PM
  5. What is flag?
    By Nyc in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 9th June 2011, 02:49 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
  •