How do I set angle of an object after using sine?

Get help using Construct 2

Post » Tue Aug 19, 2014 6:31 pm

I have an object that uses sine and bullet but when I make the sine inactive and change the angle of motion of the object's bullet then it will fly in the wrong direction.

I recreated the bug here -https://www.dropbox.com/s/dsp319ri1t5ucho/anglesetproblemwithsine.capx-
B
10
S
4
Posts: 56
Reputation: 919

Post » Tue Aug 19, 2014 8:13 pm

I don't get what you're after and why you use the Sine behavior, but if you set the "Set angle" parameter to "No" in the Bullet behavior, the black sprite does travel up and down respectively.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Tue Aug 19, 2014 8:32 pm

I want the object being thrown to be thrown with sine so it curves but when the other object throws it back I want it to be normal. I tried setting the parameter to "No" but it don't make the object being thrown curved.

In my game, I would like the player to be able to choose to throw it curved or not and the enemy to be able to toss it back curved or not.
B
10
S
4
Posts: 56
Reputation: 919

Post » Wed Aug 20, 2014 11:48 am

Since I don't know how your gameplay will work, perhaps this method won't do at all. But it does what you ask, both players can shoot straight and curved bullets to each other.
You do not have the required permissions to view the files attached to this post.
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379

Post » Wed Aug 20, 2014 4:10 pm

Thanks. This works great. It should be able to work and without using sine it actually might make it better.
B
10
S
4
Posts: 56
Reputation: 919

Post » Wed Aug 20, 2014 4:49 pm

I am glad that this helped :)
composer - multimedia artist
www.eli0s.com/en/
B
69
S
27
G
6
Posts: 1,146
Reputation: 10,379


Return to How do I....?

Who is online

Users browsing this forum: Coren8r, Cubeeo and 13 guests