Mouse.Position sensitivity

byteblorgbyteblorg Member Posts: 14
edited March 2012 in Working with GS (Mac)
hi everyone!
i was wondering, how do i set the sensitivity for the mouse attribute?
my range of movement for the actor will be set to a limited Y3 to Y18.

how can i set my actor to increase incrementally instead of "jumping" from 3 to 18 directly?

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    what triggers the actor to move ?

    mouse down? mouse up? mouse position (inside/outside)? mouse on another actor?
    you can set rules for when mouseAttribute Position.Y is < 18 and … >3

    you can interpolate Actor's attribute self.Position.Y to 18 or 3 … and use Duration for incremental effect

    please post more information

    @};- MH
  • byteblorgbyteblorg Member Posts: 14
    I'm using this currently, player rotates actor using a mouse.
    The sensitivity is too quick,as it jumps from 3 to 18 unless the player really follows the small increments

    max(3,min(18,vectorToAngle( game.Mouse.Position.X - self.Position.X , game.Mouse.Position.Y - self.Position.Y )))
Sign In or Register to comment.