Actor keeps shaking around whit touch

if.edouif.edou Member Posts: 5
edited November -1 in Working with GS (Mac)
I have an actor that moves towards the position of a touch, but when the actor arrives the x,y of the touch, it starts shaking around the position, how can i fix that? (when i keep the finger on the screen).

Comments

  • old_kipperold_kipper Member Posts: 1,420
    How are you moving the actor to the finger? And perhaps more importantly, how are you stopping the chase behaviour and leaving the actor just constrained? If you have the actor constantly chasing the finger with something like an 'interpolate to', it may well override the 'constrain to' and cause the jiggling about. So I would have a fairly snappy accelerate towards based on the actor being at least a certain distance away from the touch, then once close in, lock to the constrain.

    hope that helps.

    kipper
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    Hi if.edou,

    Check out this thread and see if it helps.

    http://gamesalad.com/forums/topic.php?id=29010

    jamie
  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I posted a short video about how to solve this below if you're still looking:



    jamie
    www.jamie-cross.net
  • if.edouif.edou Member Posts: 5
    hi jamie_c,

    my problem was when i draged an actor to a position with my finger, when it reaches the position an keep my finger touching the screen, the actor keeps bouncing around the finger position, i solved it whit constrain attribute instead of move.
    thks anyway for your help
  • dtm1234dtm1234 Member Posts: 1
    Thank you, forums! I've been trying to find the solution for this problem for two days before I saw this!
Sign In or Register to comment.