How do I disable clicking and holding to destroy blocks?

alexsmith1095alexsmith1095 Member Posts: 3
edited May 2014 in Working with GS (Mac)

I am trying to develop something where blocks fall down and you have to click them to destroy them.

I have it working however you can just hold down the mouse button and move it into the blocks and they will destroy.

I want it so that you have to click each block directly and individually one at a time.

Thanks in advance!

Answers

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

    When posting a problem you're having, it's best to include the rules you are having trouble with. A screenshot is helpful.

    Try changing the rule to When Touch is Released.

    Also please try to post in a related subforum - you posted in "Commercial Area Rules & Questions." I'll move it to Working with GS (Mac) but if you're using Windows Creator let me know.

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

  • alexsmith1095alexsmith1095 Member Posts: 3
    edited May 2014

    Sorry about the placement, it was the only one I could see that said questions :/

    I figured it out - I didn't know that I could have a rule inside another rule so it would be executed after the first.

    I now have:

    Rule:
    Actor receives event - mouse position is - inside
    Actor receives event - mouse button is - down

    (Rule:)
    Actor receives event - mouse position is - inside
    Actor receives event - mouse button is - up)

    ((Destroy))
    destroy this actor

Sign In or Register to comment.