1. #1

    Making a raft go back and forward, how?

    Ive tried using the Elvevator UP DOWN example but with no luck. Does anybody know?

    I want the raft to go back and forward the whole time, starting with a trigger.

    I would appreciate it alot if someone could tell me how this could be done.

    Thanks
    Share this post

  2. #2
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Making a raft go back and forward, how?

    need an object position event. Copy the FPS example, and place the raft there instead of the ball. (reattach the x, y, z, info sources
    Share this post

  3. #3

    Re: Making a raft go back and forward, how?

    Ok I just quickly threw one together in the editor. Here's what you need to do:

    1. Spawn an object position event, set the event target as the raft.

    2. Spawn a curve data source, set the curve to sine for smooth movement. The start should be zero, the end how far you want it to move, and the duration how long you want the movement to take before it repeats.

    3. Go back to the object position event, go to position X and press the Y button (pick value object), then select your data source.

    4. Spawn an interval trigger. Set the start tick to 0, and the interval to 1. Then select event/filter, and pick the object position event.

    5. Done!
    Share this post

  4. #4

    Re: Making a raft go back and forward, how?

    Originally Posted by Jarr3tt88
    need an object position event. Copy the FPS example, and place the raft there instead of the ball. (reattach the x, y, z, info sources

    Does it really need to be that much going on to make a peice of wood move back and forward in one direction? I dont want to stear the raft, i only want it to move back and forward automaticly starting when i hit a trigger.

    I got the fps example copied thought, but it seems like an aweful lot of work just for this simple task. Even the example elevator didnt have alot of joints etc etc. And it moved up and down...
    Share this post

  5. #5

    Re: Making a raft go back and forward, how?

    Originally Posted by James24993
    Ok I just quickly threw one together in the editor. Here's what you need to do:

    1. Spawn an object position event, set the event target as the raft.

    2. Spawn a curve data source, set the curve to sine for smooth movement. The start should be zero, the end how far you want it to move, and the duration how long you want the movement to take before it repeats.

    3. Go back to the object position event, go to position X and press the Y button (pick value object), then select your data source.

    4. Spawn an interval trigger. Set the start tick to 0, and the interval to 1. Then select event/filter, and pick the object position event.

    5. Done!

    I did as you said but it was VERY choppy, the raft like jumped 5 meters each second lol.

    EDIT: Maybe it did wrong... on 3. did you mean select curve data source? or another one?

    Oh i see i now changed the interval trigger to 1 xD, its smooth now thanks.
    Thanks for trying thought.
    Share this post

  6. #6

    Re: Making a raft go back and forward, how?

    Originally Posted by river123
    Originally Posted by James24993
    Ok I just quickly threw one together in the editor. Here's what you need to do:

    1. Spawn an object position event, set the event target as the raft.

    2. Spawn a curve data source, set the curve to sine for smooth movement. The start should be zero, the end how far you want it to move, and the duration how long you want the movement to take before it repeats.

    3. Go back to the object position event, go to position X and press the Y button (pick value object), then select your data source.

    4. Spawn an interval trigger. Set the start tick to 0, and the interval to 1. Then select event/filter, and pick the object position event.

    5. Done!

    I did as you said but it was VERY choppy, the raft like jumped 5 meters each second lol.

    EDIT: Maybe it did wrong... on 3. did you mean select curve data source? or another one?

    Thanks for trying thought.
    Yes I meant that, try increasing the duration of the curve data source.
    Share this post

  7. #7

    Re: Making a raft go back and forward, how?

    It works great now! Thanks a bunch ;D. Btw i want a trigger to make the raft start moving when i hit it. On what event should i connect the trigger on?
    Share this post

  8. #8

    Re: Making a raft go back and forward, how?

    Originally Posted by river123
    It works great now! Thanks a bunch ;D. Btw i want a trigger to make the raft start moving when i hit it. On what event should i connect the trigger on?
    State event. Connect it to the interval trigger.
    Share this post

  9. #9
    Jarr3tt88's Avatar Senior Member
    Join Date
    Jan 2013
    Posts
    3,520

    Re: Making a raft go back and forward, how?

    Originally Posted by river123
    Originally Posted by Jarr3tt88
    need an object position event. Copy the FPS example, and place the raft there instead of the ball. (reattach the x, y, z, info sources

    Does it really need to be that much going on to make a peice of wood move back and forward in one direction? I dont want to stear the raft, i only want it to move back and forward automaticly starting when i hit a trigger.

    I got the fps example copied thought, but it seems like an aweful lot of work just for this simple task. Even the example elevator didnt have alot of joints etc etc. And it moved up and down...
    Delete what you don't need....thought that would be implied haha You need to take off the direction you don't want it to go, delete the camera....and the opposite stick you're not using.

    The FPS example should be a favorite, can be used for several mini games, and other uses.
    Share this post

  10. #10

    Re: Making a raft go back and forward, how?

    Originally Posted by James24993
    Originally Posted by river123
    It works great now! Thanks a bunch ;D. Btw i want a trigger to make the raft start moving when i hit it. On what event should i connect the trigger on?
    State event. Connect it to the interval trigger.
    Works now thanks : ). Btw im steering the fps ball, but it doesnt seem to want to stay on the raft.. the raft just slips right away. I can stand on it but when it starts to move i cant get any traction on it, any tip?
    Share this post