1. #1

    [Editor] Help - Moving objects along a path

    Hey guys, sorry for paintmash early on a Monday morning.

    http://i.imgur.com/PbaqbeA.png


    I'm a part of a level editing duo. We're getting to grips by mostly self learning the tools at our disposal.

    We are having trouble moving objects along a path, with multiple points on it -- namely, animation. not just moving an object from A to B, or have it follow something else, but actually have an object moving along a predetermined path (using what we think are correct-- Vectors and Dummy objects).

    Above is a diagram from memory of our set up. Anyone able to offer some insight as to why this doesn't work? The first leg works ok - the heart moves from the first object to the 2nd. Then it seems to break, moving instantly to the 3rd object and flickering every tick between object 3 and 1 for the duration of the animation.

    Really welcome some advice - thanks!

    Mister_Leroy & INCUBA3E

    //edit:
    • The intervals are set to 1 tick apart
    • The first curve eases in, the 2nd is linear, the 3rd eases out (were hoping this would accelerate and decelerate the object)
    Share this post

  2. #2
    Hello. Looking at your diagram, i think i would use state events to turn on the data sources as you need them, as I find that more reliable than using the delay on the impules triggers. If not then they will be running as soon as you activate physics and so that may be why your object teleports after the first section. Basically the linear data source would be active from the go and so by the time your impulse reaches the Object position event the curve of the data source has finished and it takes the end value.

    Make sure your interval trigger and linear data sources for the 2nd and 3rd point are disabled, then use a delay filter inbetween setting off the 1st impulse which goes to a state event to enable the 2nd, then the same for the 3rd.

    You could also use the one O.P.E and change the values of the linear data source with some variable data sources.
    Hope this helps, sorry if not.
    Share this post

  3. #3
    Check out the stickied tutorials thread at top of level editor page, there's one in there by jamminben007 (no. 38 on full list) called - how to move an object on a irregular looping path - I think it will help with what you want
    Share this post

  4. #4
    IImayneII's Avatar Senior Member
    Join Date
    Mar 2014
    Posts
    1,063
    If your drawing is the same what you have in the editor, the problem is most likely that the curve has already started before the impulses get to the ope so the object immediatly jumps to where the curve is at that time. Best option is to turn the curve off and turn it ON when the interval starts to work.

    So just use an interval with the same delay (disabled after 1 tick) connected to a state event (ON) connected to the curve.


    A different setup would be to use one OPE setup and just change the value's according to the movement, wich is better imo. Something like this:
    Just make sure everything has the "reset at checkpoint restart" unchecked. And if you have any questions about the setup, just ask.



    Share this post

  5. #5
    Originally Posted by BMXBandit777 Go to original post
    Check out the stickied tutorials thread at top of level editor page, there's one in there by jamminben007 (no. 38 on full list) called - how to move an object on a irregular looping path - I think it will help with what you want
    that doesn't use dummies though so can't easily be adjusted

    in one of the example tracks there is a complicated version for irregular movement that uses dummies as waypoints that can be easily moved
    Share this post

  6. #6
    Originally Posted by bassline001 Go to original post
    And if you have any questions about the setup, just ask.
    I could quiz you on this for hours my friend. Trying to work out how your set up pictured actually works and plots a non linear path. I'll keep looking at it for now, but I will certainly avail of your kind offer of Q&A as and when I get stuck.
    Share this post

  7. #7
    IImayneII's Avatar Senior Member
    Join Date
    Mar 2014
    Posts
    1,063
    Originally Posted by Mister_Leroy Go to original post
    I could quiz you on this for hours my friend. Trying to work out how your set up pictured actually works and plots a non linear path. I'll keep looking at it for now, but I will certainly avail of your kind offer of Q&A as and when I get stuck.
    The idea is that the object moves from dummy object to dummy object. (those at the top of the first screenshot)

    So you can place them where you want the object to go, and easily adjust it a bit. The linear vectors make the movement from one dummy object to another, so there are 3 movements that follow each other. (1-2, 2-3, 3-4) (total of 4 dummy objects)

    The left column is the impulse (interval trigger is disabled after 1 tick) to turn on/toggle the different movements, so if the object went from (1-2) it stops that movement setup (curve vector and interval trigger) and starts the other one (2-3)

    To easily adjust the time of the curve/delay impulse wich should be the same (as when the curve stops it should trigger the next movement) I connected the curve duration and delay time of the delay impulse to one data card where you can easily change the time and you have to do it only once.

    All curve vector data's are linked to a set vector event that change the value of the "default" vector that is connected to the OPE. So the set vector event, uses the value of one curve data source to change the default vector, if one movement is done it changes to the next one and then that one changes the value of the default vector if that makes any sense.

    Also make sure all interval triggers are set to 1 tick for the interval (except the one in the left column because that one should disable after 1 tick so it doesn't matter) You can also leave the trigger in the left column out of the setup and just use the select even/filter option from the state event on the right (where it all starts) to give the impulse to the state event where the interval trigger points to (and even leave that state event out and use the first one to turn everything on). But I tought that would just make it more complicated to see how it works...and I'm probably just confusion you more now
    Share this post

  8. #8
    IImayneII's Avatar Senior Member
    Join Date
    Mar 2014
    Posts
    1,063
    Originally Posted by Mister_Leroy Go to original post
    I could quiz you on this for hours my friend. Trying to work out how your set up pictured actually works and plots a non linear path. I'll keep looking at it for now, but I will certainly avail of your kind offer of Q&A as and when I get stuck.
    What do you mean with non linear path? That movement on the axis is not same? So if it moves from point A - B it doesn't follow a linear path, for examples goes up faster then it moves to the right?

    Because yeah, the setup I gave you is more for a linear path from Dummy object 'A' to Dummy object 'B'.

    If you want to have it non-linear you will have to change the vectors for regular curve date sources so you can adjust the movement seperatly for each axis. So instead of 1 vector curve data source, you will need to use 3 regular curve data sources wich you can adjust seperatly. I was making that setup first but I tought this setup would be less confusing as there are less events you need. If you want I can make you a screenshot of the other setup too...
    Share this post

  9. #9
    Originally Posted by sparkierjonesz Go to original post
    that doesn't use dummies though so can't easily be adjusted
    True but there's still a load of great stuff in there to help people new to the editor
    Share this post

  10. #10
    Originally Posted by bassline001 Go to original post
    What do you mean with non linear path? That movement on the axis is not same? So if it moves from point A - B it doesn't follow a linear path, for examples goes up faster then it moves to the right?

    Because yeah, the setup I gave you is more for a linear path from Dummy object 'A' to Dummy object 'B'.

    If you want to have it non-linear you will have to change the vectors for regular curve date sources so you can adjust the movement seperatly for each axis. So instead of 1 vector curve data source, you will need to use 3 regular curve data sources wich you can adjust seperatly. I was making that setup first but I tought this setup would be less confusing as there are less events you need. If you want I can make you a screenshot of the other setup too...
    It's ok man, really. I will need to get my head around this set up before I dive deeper. My end goal is to have something move around a path, looped or not, but with more than one point. EG:



    The points here are, for this example, from a birds eye view.

    The dummies are ideally also at different heights, and yaw would be something I want to affect during the animation ultimately, but for now am trying to settle for just moving them along those lines. I assume getting the arc in would be pretty hard work by arc I mean:



    //edit// I've just seen your 2nd post above, I'll have a read of that now
    Share this post