# How do I make platform move on a trajectory and back

Get help using Construct 2

### » Fri Mar 25, 2016 5:26 pm

Hi,

I need to move the platform on a trajectory when the player jumps on it and move it back to the original position. The movement is continuous.

B
134
S
53
G
25
Posts: 401
Reputation: 23,269

### » Fri Mar 25, 2016 5:35 pm

For a circular path, try the Sine Behavior (two of them, one for horizontal movement, one for vertical)
B
60
S
30
G
134
Posts: 1,950
Reputation: 75,377

### » Fri Mar 25, 2016 6:36 pm

oosyrag wrote:For a circular path, try the Sine Behavior (two of them, one for horizontal movement, one for vertical)

I just need half circle and back to original position.
B
134
S
53
G
25
Posts: 401
Reputation: 23,269

### » Fri Mar 25, 2016 6:54 pm

B
60
S
30
G
134
Posts: 1,950
Reputation: 75,377

### » Fri Mar 25, 2016 10:00 pm

(Remembers stress inducing platforming jumps from Mega Man games...)
B
249
S
138
G
15
Posts: 185
Reputation: 27,778

### » Tue Apr 05, 2016 11:54 am

@oosyrag when I change the value, it changes the path
B
134
S
53
G
25
Posts: 401
Reputation: 23,269

### » Tue Apr 05, 2016 7:02 pm

B
60
S
30
G
134
Posts: 1,950
Reputation: 75,377

### » Tue Apr 05, 2016 7:18 pm

Yes. That's what I meant it.
When I change the values, it changes the path. Sometimes it goes up and down or sometimes ir goes on a infinite loop style.
B
134
S
53
G
25
Posts: 401
Reputation: 23,269

### » Tue Apr 05, 2016 9:17 pm

Try adjusting the period offset as well - it adjusts the starting point of the motion.

If it gets confusing, try disabling one or the other sine motion to isolate just the left/right or up/down motion first to get the amount you want to move right first, then adjust the offset with trial and error to sync them correctly.
B
60
S
30
G
134
Posts: 1,950
Reputation: 75,377