User Tag List

Results 1 to 6 of 6

Thread: where is my error? (tweening)

  1. #1
    Clicker 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)

    Join Date
    Sep 2016
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    where is my error? (easing algorithm)

    HI, i try to do an "aproximation" event. Object 2 has to follow object 1 , but I don't know where my error is, I use this formula

    X( "Active 2" ) + ( X( "Active" ) - X( "Active 2" ) ) * 0.01

    When Active 2 is to the right of Active it works fine, but if it is to the left it stops before getting to his target.
    I have used counters to see where it stops and it is at the point 99 from Active, what is more, if i change the "speed" (0.01) i have found it stops at the point 1/speed from Active. I have tried rounding (and floor and ceil) but it doesnt fix my problem.

    It is driving me nuts!
    Thanks

    P.S. Excuse my English.

  2. #2
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The common term here is an 'easing algorithm' if you're looking for formulae online.

    I can't see anything wrong with the formula you're using, but the easing formula I settled on was

    Set X("Object") to (9 * X("Object") + X("Target")) / 10.0

    I'd check to see what your conditions are that make it move. Is it just on an Always event? Does anything else affect the position?

  3. #3
    Clicker 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)

    Join Date
    Sep 2016
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yes, it is an always event
    i am testing with just that event. two active objects and that formula
    just tested the formula and i get the same result, does it work fine for you?

    https://gyazo.com/a0f7c0fa4200fd53181f245656f01f83

  4. #4
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid 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)
    Wodjanoi's Avatar
    Join Date
    Jun 2015
    Location
    Germany
    Posts
    665
    Mentioned
    6 Post(s)
    Tagged
    0 Thread(s)
    Can you upload an image of the important events in Event Editor(List view) or just post what you see there?
    The formular you have in your first post cannot be everything.

  5. #5
    Clicker 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)

    Join Date
    Sep 2016
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes it is, only those objects and an always event

    16fee1704c4c6f327f7e34dfcd499139.png

  6. #6
    Clicker 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)

    Join Date
    Sep 2016
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved, i just had to use values to refer to X position instead of use the x position directly in the algorithm

Similar Threads

  1. edrt.exe runtime error error crash even if...
    By lucky in forum iOS Export Module 2.5
    Replies: 6
    Last Post: 10th February 2016, 05:36 PM
  2. JuicyVFX - Tweening Engine Source
    By DMike in forum WIP & Released Games & Apps
    Replies: 0
    Last Post: 24th July 2015, 05:55 PM
  3. Replies: 11
    Last Post: 15th March 2014, 06:22 AM
  4. [Bug] Event Group Error and Sphax MessageBox Error
    By Gustav in forum File Archive
    Replies: 10
    Last Post: 18th April 2008, 02:24 PM
  5. Error with mmf1-game: extension load error in mmf2
    By Quinto in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 27th November 2006, 12:54 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
  •