User Tag List

Results 1 to 4 of 4

Thread: Loop rotation with values and acceleration

  1. #1
    Clicker

    Fusion 2.5 Developer
    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)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Loop rotation with values and acceleration

    Hey guys, the title says it all!
    I'm trying to build a dynamic light that hangs from the roof, moving a little bit.
    It is possible that there is a very easy way to do this, and I'm making this too complicated. If so feel free to suggest a better way!

    But so far I have this kind of setting:
    Always - Set angle to rotaatio("dynlight") (Quality= 1)
    (rotaatio is a value for my dynlight object).

    Then I created a small object (kiinnike) which overlaps with the dynlight.
    "dynlight is overlapping kiinnike
    "Rotaatio of dynlight >= -25 + add 0.1 to rotaatio
    ____________________________________

    Okey so now my light turns from angle -25 to infinity.
    It would be idealistic to make it loop from -25 to +25 or even less, and also add some kind of acceleration to make it look more realistic.
    Any suggestions where to start experienting?

    Oh, ps. Bought my copy of Multimedia Fusion 2 Dev yesterday! Love this software!

    - Jesse

  2. #2
    Clicker

    Fusion 2.5 Developer
    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)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Hymm also tried:

    Rotaatio of dynlight = -15 Set internal flag 1 on
    Rotaatio of dynlight = 15 Set internal flag 1 off

    Internal flag 1 is on add 0.1 to rotaatio
    Internal flag 1 is off sub 0.1 from rotaatio

    It starts moving just fine but won't turn back when angle is 15, but it keeps moving.
    Can't figure what is wrong here, any ideas?

    EDIT: There is something I'm thinking wrong now, cause I tried with upon pressing key, toggle internal flag 1 which works. Gotta take closer look.
    EDIT2: I paired a counter with my value, and it seems to count over 15, even thou it should toggle the flag when it hits value 15. Could this be a bug?
    EDIT3: Who knows, but setting both rules to "lower or equal" and "greater or equal" it toggles just fine!
    So now I gotta think how to add acceleration, any tips for that?

  3. #3
    Clicker Fusion 2.5iOS Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    SolarB's Avatar
    Join Date
    Feb 2012
    Location
    Melbourne
    Posts
    904
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    This is easiest to do with Sin.

    Example:

    lightrotate.mfa


    Check the global values to modify the angle and speed.

  4. #4
    Clicker

    Fusion 2.5 Developer
    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)
    J3sseM's Avatar
    Join Date
    Feb 2013
    Location
    Finland
    Posts
    868
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Cool!
    Thanks, I'll check that out!

Similar Threads

  1. Replies: 7
    Last Post: 25th December 2012, 11:26 AM
  2. fast loop and loop index
    By willow in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 18th May 2010, 01:43 AM
  3. Acceleration and decceleration
    By Twario in forum The Games Factory 2 - Technical Support
    Replies: 7
    Last Post: 22nd January 2010, 09:43 PM
  4. Hardware acceleration?
    By Clicktastic in forum Multimedia Fusion 2 - Technical Support
    Replies: 20
    Last Post: 17th January 2007, 07:54 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
  •