my mouse click effects all the objects, not individuals. how do i isolate?

part12studiospart12studios Member Posts: 620
edited November -1 in Working with GS (Mac)
I'm totally new to this, but I like it a lot so far. Things are making sense, but i did quickly run into this problem.

I have a game where when i click an object.. it grows in size.. however i see that the rule is being applied to all three objects in unison, not just the one i clicked with my rule.

Any ideas on how i uniquely identify each object to be effected by the same rule? On the same topic how would you track states of individuals as well.. for example.. with the above thing. clicking makes it grow.. but i don't want it to be able to grow too large or restrict to 3 clicks before it's maxed out.

Thanks!
Caleb

Comments

  • part12studiospart12studios Member Posts: 620
    ok never mind i found out the solution.. i needed to use "touch" is "pressed".. now i'm trying to work out how to limit how many clicks can be applied to a target.. say you want something to grow x3 as large.. at some point the rule would need to change to stop responding to the click.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi, use an integer attribute set to the default zero; lets call it Grow.

    In your Rules:

    when All conditions are valid:
    When touch is pressed
    When Attribute Grow < 4

    Change attribute Grow To Grow+1
    ---your grow stuff---

    Should sort it for you. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • part12studiospart12studios Member Posts: 620
    omg that worked awesome! thanks so much! :) Plus that gave me some great ideas on how to tackle some other ideas
Sign In or Register to comment.