Jigsaw puzzel pieces stick together

Hi! I'm new to GS and would like to create a simple jigsaw puzzle game. When I move a puzzel piece and it moves over another piece, it will drag the other piece along (they stick together).
I know why they stick together, but don't know how to avoid this (because they shouldn't...)

Thanks for your help.

Answers

  • jsorr2jsorr2 Member Posts: 279

    Create a global integer called Layer.
    Create a local integer inside your actors called myLayer and make each actor have a different number in each myLayer integer.
    Then, have a rule inside each actor, when touch is pressed, change Attribute Layer, to myLayer.

    And also change your rule on how to pick up pieces of the puzzle. If touch is pressed, and Layer = myLayer, then constrain to touch.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Are you using When Touch is Pressed for your rule condition? If not, try that.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Studio OostStudio Oost Member Posts: 1

    Thanks for the help.
    I'll try the solutions and let you know (this my take a few days).

Sign In or Register to comment.