Flipping Sine direction

Get help using Construct 2

Post » Sat Apr 25, 2015 1:40 pm

I have a spell in my game that shoots 2 projectiles at once that use bullet and sine movement (so they shoot ahead and swing up and down as they move). I want one of the bullets' sine directions to start off in the opposite direction, ie one starts going down and the other up, so they kind of loop back and forth with each other, but I can't figure out how to do it at all - I've tried reversing the angle of the object but the sine movement stays the same. Any ideas?
B
15
S
4
G
1
Posts: 286
Reputation: 1,988

Post » Sat Apr 25, 2015 1:54 pm

bullet 2 set magnitude to ................. - bullet 1 magnitude

so.. if bullet1 have magnitude 50.. for bullet2 set -50
Image
B
65
S
23
G
7
Posts: 1,501
Reputation: 10,888

Post » Sat Apr 25, 2015 1:57 pm

I think adding a period offset of half the period would get the exact result you'd like..

I guess in the actions it would be set the cycle position of one of the bullets created to 0.5
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Apr 25, 2015 1:59 pm

@korbaach Ahh, so simple! Thanks a lot
B
15
S
4
G
1
Posts: 286
Reputation: 1,988


Return to How do I....?

Who is online

Users browsing this forum: Laura_D and 28 guests