angle is left or right of an object?

This forum is currently in read-only mode.
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.




                              <-       +>



    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.

    Try Now Construct 3 users don't see these ads
Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)