How do I make the animation follow the target

Just started using Construct 2? Post your questions here

Post » Tue Nov 18, 2014 5:09 pm

I want to make the animation follow the angle's target so when I shot toward a higher spot I can see my character aiming up there. Right now I can shoot any where but my animation just "aim" to the right and left. I have no clue how to do that. Any help?
B
56
S
21
G
3
Posts: 602
Reputation: 6,612

Post » Tue Nov 18, 2014 5:29 pm

Get the X and Y position of the target and shooter, then use some basic trigonometry to work out the desired angle.
Image
B
9
S
3
G
1
Posts: 346
Reputation: 1,560


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 3 guests