HUD compass
Hello,
can anybody point me into the direction to make a hud compass which points to a non movable actor in a scrolling scene environment...
can anybody point me into the direction to make a hud compass which points to a non movable actor in a scrolling scene environment...
Comments
+Constrain Attribute Behavior
Constrain Attribute: game.objectiveX
to: self.position.X
+Constrain Attribute Behavior#2
Constrain Attribute: game.objectiveY
to: self.position.Y
inside Compass actor
+Constrain Attribute Behavior
Constrain Attribute: self.rotation
to: vectorToAngle(game.objectiveX-self.position.X, game.objectiveY-self.position.Y)
Depending on if your compass is originally pointing up or down, you may need to add +90 or -90 at the end of the last expression