angle is left or right of an object?

This forum is currently in read-only mode.
From the Asset Store
A complete set of graphical user interface (GUI) to build 2D video games. With wood, nature, & jungle theme
  • 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.

    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)