Change Velocity Glitch

bgappsbgapps Member Posts: 183
edited November -1 in Tech Support
http://www.youtube.com/watch#!v=yxt5aeDD9VU

Im trying to get campaign to stop when x=416 so i used the change velocity to 0 when self.position.x=416 but it keeps on moving

Comments

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    When the actor is moving, finding when it is exactly 416 and stopping it at that point is really difficult.

    If you can try ≥ 416 because if the position is 416.001 the condition won't see it at exactly 416.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    bgapps said:
    http://www.youtube.com/watch#!v=yxt5aeDD9VU

    Im trying to get campaign to stop when x=416 so i used the change velocity to 0 when self.position.x=416 but it keeps on moving

    try changing self motion linear velocity x and self motion linear velocity y to 0
  • bgappsbgapps Member Posts: 183
    try it and still doing the same thing
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    also you can just interpolate the buttons self position x to 416, instead of moving it and trying to get it to stop
  • bgappsbgapps Member Posts: 183
    worked
    thanks John
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I have experienced this glitch also but just by triggering from an attribute. not a screen position. It stops but then bumps itself a pixel or two every second. I'm even doing a change attribute to reset the pieces position but it does it after the reset. I'm having to constrain the position attributes to keep it in place until ready to go again.
Sign In or Register to comment.