Help with Mouse.Position.X and Y with scrollable screens
Sunny
Member Posts: 12
I have the camera fixed on an actor, who can move in an area 2x the width of the camera.
The actor's head, which is a separate actor, rotates depending on the mouse position (so the head faces where the mouse is)
When i do not move the actor, this works perfectly.
However, when i move the actor towards the area (camera scrolls slightly), the angles seem to be wrong
I am doing this to get the angle: vectorToAngle( game.Mouse.Position.X - self.Position.X , game.Mouse.Position.Y - self.Position.Y )
Any help would be appreciated!
The actor's head, which is a separate actor, rotates depending on the mouse position (so the head faces where the mouse is)
When i do not move the actor, this works perfectly.
However, when i move the actor towards the area (camera scrolls slightly), the angles seem to be wrong
I am doing this to get the angle: vectorToAngle( game.Mouse.Position.X - self.Position.X , game.Mouse.Position.Y - self.Position.Y )
Any help would be appreciated!
Comments
Sounds like it should work.
Darren.
Darren.
If i unlock an actor, and I want to make changes (like add a rule), should i do this by double clicking the actor in the scene, or using the actor in the inspector? I'm afraid it may lead to inconsistencies in the future