I really need help... 2 actors on the same place. How to touch only one?

LordTarantorLordTarantor Member, PRO Posts: 890
edited November -1 in Working with GS (Mac)
I have 2 actors on the same place and I want to touch the top one without activating the bottom one.
What kind of rile should I use? If some knows please explain because I been getting fractions of the answer and I am still clueless.

Comments

  • AsymptoteellAsymptoteell Member Posts: 1,362
    There's a demo for this somewhere. I can't remember where. I think it's fmg's or maybe tshirtbooth's.
  • MotherHooseMotherHoose Member Posts: 2,456
    did you try separate layers for separate types of actors? where touch will affect the image in the top layer...

    did you add to the Rule (All) when "touch is pressed"... the condition touch is inside?

    do some other work like images, sounds, title page, credits and sleep on this one.

    MH
  • calvin9403calvin9403 Member Posts: 3,186
    take a pic of your rule
  • ChaserChaser Member Posts: 1,453
    Maybe try an attribute or a disabling of one actors touch when it is overlapping the other
  • AsymptoteellAsymptoteell Member Posts: 1,362
    on both, if touch is pressed, change an attribute to true. In your rules, make it so if both are true, have the bottom one do nothing.
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Ok guys this is basically what I am doing.
    In the good actor, there is a rule that says:
    When touch is press
    change good actor to 1
    otherwise:
    when touch is released
    change good actor to 0.

    In the bottom actor:
    when touch is press and good actor 0 (like if I am pressing in a part where there is no top good actor)
    you loose = 1.
    Otherwise:
    When touch is press and good actor 1
    you loose = 0

    I have been playing around this but I cant find the way to make it work.
    This is the only thing that I need to finish my game. Please guys I am going crazy, I need help.
  • LordTarantorLordTarantor Member, PRO Posts: 890
    Asymp that makes sense I will try that right now
Sign In or Register to comment.