How do I find out if object is between two other objects?

Get help using Construct 2

Post » Mon May 16, 2016 8:15 pm

Basically, what I am trying to achieve is movement in array, but I do have some walls, that I don't want the player could teleport over, so I am trying to find out if between the player and the final destination is wall, so I can ban his teleportation.
B
3
Posts: 8
Reputation: 187

Post » Mon May 16, 2016 8:57 pm

You can check it by comparing the angles. The right wall has to be at angle 0, and the left wall at angle 180, both relative to the player.
B
19
S
6
G
2
Posts: 258
Reputation: 2,644

Post » Mon May 16, 2016 9:02 pm

Thanks. Helful. :D
B
3
Posts: 8
Reputation: 187

Post » Mon May 16, 2016 9:07 pm

checkmate1 wrote:Thanks. Helful. :D


Nice mate, good luck ^^
B
19
S
6
G
2
Posts: 258
Reputation: 2,644


Return to How do I....?

Who is online

Users browsing this forum: unicornspitfire and 70 guests