Get the angle direction from a to b?

Get help using Construct 2

Post » Sat Jun 23, 2012 7:39 pm

So, how can I get the angular direction from my player (PlayerImage), to anothe Sprite (DirectionSprite)?
B
10
S
3
G
3
Posts: 45
Reputation: 2,984

Post » Sat Jun 23, 2012 7:51 pm

use the angle expression:

angle(PlayerImage.x,PlayerImage.y,DirectionSprite.x,DirectionSprite.y)
B
29
S
11
G
12
Posts: 281
Reputation: 11,878

Post » Sat Jun 23, 2012 8:00 pm

Thanks!
B
10
S
3
G
3
Posts: 45
Reputation: 2,984


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 18 guests