How to check if 2 actors are at the same height on Y axis?

FanStudioUKFanStudioUK Member Posts: 459
edited November -1 in Working with GS (Mac)
I have one actor and Im constraining his Y value.
I want to check if his position will be in the visual field of another, I mean to check if his position is between Actor2.Position.Y+10 and Actor2.Position.Y-10

Does it make sense? :)

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    Andrei, one of the 1st things I put in a new project is an
    -actorX to Display Text: game.mouse.Position.X
    -and another one for game.mouse.Position.Y

    have them on-screen in a non-interfering location
    then while you design...in Preview mode: you'll always know the location of things in the scene.

    for real precision location, I use a cross-hair actor that constrains to mouse x,y

    in this instance think you could do a game attribute for y and have actor2 change those attributes to self.Position.Y and have that game.attribute displayed with a display text actor.

    Does it make sense? ;)

    MH
  • FanStudioUKFanStudioUK Member Posts: 459
    Thank you!
Sign In or Register to comment.