# angle is left or right of an object?

This forum is currently in read-only mode.
0 favourites
• 1 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
• 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.

------------------------------------------------------------------------

a

<-       +>

b

------------------------------------------------------------------------

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.

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads