How do I get sine to work in opposite direction?

Get help using Construct 2

Post » Tue May 02, 2017 1:49 am

I've noticed that when you apply sine to a platform it only moves it horizontally initially from left to right and vertically up to down, but how do I make it work in the opposite direction? I have two moving platforms next to each other that I would like both to move vertically in opposite directions... so when one goes up, the other goes down, instead of both going up at the same time...

Any suggestions?
B
8
S
1
Posts: 7
Reputation: 414

Post » Tue May 02, 2017 2:25 am

magnitude negative value
B
25
S
16
G
26
Posts: 125
Reputation: 16,103

Post » Tue May 02, 2017 7:51 am

You can also set the period offset property to start the cycle half away the sine wave. Set cycle position action lets you change period offset property in runtime if you need to. https://www.scirra.com/manual/103/sine
B
11
S
3
G
1
Posts: 19
Reputation: 905

Post » Wed May 03, 2017 12:17 am

celstrider wrote:magnitude negative value


AH! Thank you :)
B
8
S
1
Posts: 7
Reputation: 414


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 33 guests