How do I make platform move on a trajectory and back

Get help using Construct 2

Post » 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.

Image
B
116
S
48
G
24
Posts: 401
Reputation: 22,207

Post » 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)
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » 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
116
S
48
G
24
Posts: 401
Reputation: 22,207

Post » Fri Mar 25, 2016 6:54 pm

Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » Fri Mar 25, 2016 10:00 pm

(Remembers stress inducing platforming jumps from Mega Man games...)
B
206
S
115
G
8
Posts: 140
Reputation: 20,801

Post » Tue Apr 05, 2016 11:54 am

@oosyrag when I change the value, it changes the path
B
116
S
48
G
24
Posts: 401
Reputation: 22,207

Post » Tue Apr 05, 2016 7:02 pm

Did you download the capx I linked to in my previous post?
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458

Post » 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
116
S
48
G
24
Posts: 401
Reputation: 22,207

Post » 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.
Mistakes were made.
B
51
S
25
G
107
Posts: 1,581
Reputation: 60,458


Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 18 guests