User Tag List

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

Thread: Start each objects movement individually

  1. #11
    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 casleziro View Post
    I would personally ditch using the actual Fusion Timer and instead opt for an alterable value that increases by 1 every frame and wraps at 360. You could easily set it to tick and wrap with an always event like so:

    Set value to (value+1) mod 360

    Then you could simply set the value to be whatever you want at start, and it'll begin at that position in the sinewave.
    Should the mod expression be used with the other code?

  2. #12
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    Just type "mod" in the expression editor. Your expression would probably end up looking like this:

    (Value("Object)+1) Mod 360

    make sure to keep the "value+1" part in parentheses. I would make an example but i'm not on my computer with Fusion. You should be able to get it working without much trouble, though.

    EDIT: and to clarify, you would use this new alterable value in place of the Fusion Timer. I.e instead of Sin(Timer) you use Sin(Value)

    EDIT2: and to make the movement faster or slower, you would add more or less to the value. So if you want a slower movement you would only add like 0.5, and you could add 10 if you want a super fast movement. A "speed" value that you replace with "1" in that expression could make it easier to change on the fly.

  3. #13
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    I got home and realized that Schrodinger's example is probably using Sin() differently than I normally would, and that my method with the wrapping value probably wouldn't mesh (I haven't checked; if he is, my bad ). So, I threw together an example you can tweak to your liking, and started the objects at different positions depending on their IDs to create a cool "wave" effect.

    Hopefully it helps: sinewave stuff 1.mfa

  4. #14
    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)
    ABSOLUTELY PERFECT!! Thank you both, it's turned out exactly what I wanted, hopefully this example will be great for anyone else needing this kind of trick, it's very VERY effective!!

  5. #15
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    first post:
    this shouldn't be an issue regarding flags or qualifiers,
    but can you specify more in detail what you need?
    You need a well defined distance travelled you can specify and a well defined speed?
    Same distance moved for every object?

    second post:
    yeah you can use a value (unique to each object) instead of "timer", as suggested above


    EDIT:
    whoops, I somehow missed second page of the thread I was answering to "old" questions on the text above,
    now I see it's al fixed - glad it's all fine

    A little suggestion:
    you don't usually need "mod" for sin/cos as they automatically "wrap"

    i.e.

    sin(359)= -0,01745240643728351281941897851632
    sin(360)= 0
    sin(361)= 0,01745240643728351281941897851632

  6. #16
    Clicker Fusion 2.5Fusion 2.5+ DLC
    casleziro's Avatar
    Join Date
    Mar 2013
    Location
    United States
    Posts
    679
    Mentioned
    14 Post(s)
    Tagged
    0 Thread(s)
    That's true Schrodinger. I just prefer to reset the value instead of allowing it to infinitely build, I guess.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Multiple duplicate objects overlapping, not individually responding to Qualifiers.
    By ratty in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 5th July 2012, 09:20 PM
  2. Using FastLoops to handle objects individually ( not working )
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 13th February 2012, 09:11 PM
  3. Objects shooting individually.
    By MangoMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 6th October 2011, 03:03 PM
  4. Treating objects in Qualifiers individually
    By Gunnar in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 23rd January 2010, 07:28 PM
  5. Need to control copied objects individually
    By Bernardo3D in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 3rd October 2009, 12:18 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
  •