where is my error? (tweening)

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • 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.

    Edited once, last by Jurenito: clarifying (January 16, 2017 at 9:02 AM).

  • 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?

    For a list of my achievements, hit up Please login to see this link..com/
    Unless you want to party, then go to Please login to see this link.

  • 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?

    Please login to see this link.

  • 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.

    Currently working on ... [SIGPIC][/SIGPIC] ... a Puzzle Platformer

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!