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
2
Posts: 18
Reputation: 611

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
64
S
19
G
8
Posts: 341
Reputation: 12,185

Post » Tue Jul 09, 2013 3:06 am

Ah yes, that is what i need, thank you. :)
B
8
S
2
Posts: 18
Reputation: 611

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,841


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 10 guests