direction of swipe

brendanzhbrendanzh Member Posts: 19
edited November -1 in Working with GS (Mac)
Hi all, I have a swipe going back and forth on X but how can I make it so its only going right and you cant swipe left, if you know what I mean.

Thanks for all your help!

Comments

  • MattGibbardMattGibbard Member Posts: 45
    Can you expand on your question because I'm a little confused. Are you trying to swipe something to the right, but want to block a swipe to the left?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    You could wrap your constrain behavior that controls the camera velocity in a rule when self.linearvelocity.x is greater than 0 that way if the drag actors velocity is a negative number meaning moving left it will not constrain itself to that velocity.

    I have not tried it but the logic seems right.

    Let me know if it doesn't work.

    Thanks
    Aaron
Sign In or Register to comment.