How do I tell if an object is facing another object?

Get help using Construct 2

Post » Fri Jul 04, 2014 8:36 pm

Basically, I need to know how to tell if one object is facing another object. This is so that I can rotate an object smoothly until it is facing another object, whilst still moving, to make player movement less jaggedy.
B
5
Posts: 20
Reputation: 519

Post » Fri Jul 04, 2014 9:09 pm

You can check the angle of an object by using the conditions: "is between angles" , "is clockwise from" and "is within angle"
B
6
S
1
Posts: 73
Reputation: 571

Post » Sat Jul 05, 2014 6:35 am

@rezagamertag I know about this but don't know how it could make the player movement smoother.
B
5
Posts: 20
Reputation: 519

Post » Sat Jul 05, 2014 7:41 am

up
B
5
Posts: 20
Reputation: 519

Post » Sat Jul 05, 2014 10:42 am

I honestly can't tell what you mean by jaggedy movement, so you're going to have to upload a capx or an example so people can see it for themselves.
B
6
S
1
Posts: 73
Reputation: 571

Post » Sat Jul 05, 2014 2:31 pm

Have you tried the 'rotate toward angle' expression? So it will rotate TOWARDS the angle, not just jerk straight to it.
B
25
S
5
G
3
Posts: 446
Reputation: 5,633


Return to How do I....?

Who is online

Users browsing this forum: PROxMTswatTR, sean080 and 39 guests