angle is left or right of an object?

For questions about using Classic.

Post » Thu Oct 06, 2011 5:17 pm

I'm trying to figure out how to form the condition if a x,y position is left or right relative to an object that rotates.

                          <-       +>

so a is to the right of - man and b is to the right of + man

in the angle difference formula both would turn up :90

ha just figured it out after typing this

if AngleDiff(<-.Value('ang'), <-.Angle-90)lower than 90

to help clarify <-.Value('ang') is angle(<-.X, <-.Y, a.X, a.Y)

guess ill still keep this up for people that might face a similar problem.Bartosh2011-10-06 17:19:28
Posts: 249
Reputation: 2,323

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests