How to check if 2 actors are at the same height on Y axis?
FanStudioUK
Member Posts: 459
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?
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
-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