Is It possible to stop click & drag function when it drag pass a wall?

cptongsgcptongsg Member Posts: 70
edited November -1 in Working with GS (Mac)
Hi, any possible way to stop a click and drag actor, when touching a wall. It just behave like a ghost moving pass every wall. I had try the collide function but it doesn't help. Many thks in advance!!

Comments

  • ckurt25ckurt25 Member Posts: 122
    Not an expert here but I think if you used constrain attribute for the actor to the position of the wall that should work.
  • cptongsgcptongsg Member Posts: 70
    I have few wall in my game can this work?
  • FetaboyFetaboy Member, PRO Posts: 191
    I'm having the same issue, and have yet to find a solution that works 100%.
  • synthesissynthesis Member Posts: 1,693
    just place the drag rules inside a rule that only is enabled if the dragging actor is "outside" your wall actor.

    I think that will work...albeit I have never tried it.
  • cptongsgcptongsg Member Posts: 70
    Hi Synthesis, thks it work but it just stick to the wall & can't drag away from the wall.... any rule I can add on?
Sign In or Register to comment.