Sine angle

Get help using Construct 2

Post » Mon Jul 08, 2013 7:00 pm

So i have this enemy ship with bullet and sine behaviors. I would like the enemy's angle to match the sine movement. In the bullet behavior, 'set angle' has no effect and using 'angle of motion' does not work either. Any ideas?
B
8
S
1
Posts: 15
Reputation: 455

Post » Mon Jul 08, 2013 7:49 pm

One way to do it is to record the sprite's X and Y position from the previous tick, and set the sprite's angle based on the angle between its previous position, and its current position.

Demo
Capxzatyka2013-07-08 19:51:56
B
55
S
17
G
8
Posts: 339
Reputation: 11,736

Post » Tue Jul 09, 2013 3:06 am

Ah yes, that is what i need, thank you. :)
B
8
S
1
Posts: 15
Reputation: 455

Post » Mon Apr 14, 2014 11:49 pm

Thank you, I was needing this for my project. :D
B
28
S
5
G
5
Posts: 30
Reputation: 5,836


Return to How do I....?

Who is online

Users browsing this forum: Greaver, luckyrawatlucky and 9 guests