Touch through actor help

VGXVGX Member Posts: 796
edited November -1 in Working with GS (Mac)
I have 2 actors one in front of the other. I am able to click through the actor in front to the one behind.

I have searched the forums and videos and I can not find any solutions for this.

Comments

  • scitunesscitunes Member, Sous Chef Posts: 4,047
    As far as I know (been an active user for 2 years) no one has come up with a good solution to this problem.
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi VeiraOne, this is the way the GS engine works, I'm afraid. There are workarounds though, for instance, using in the Rules (sketchily put here, for guidance only):

    In top layer actor,
    When all is true
    When touch is pressed
    when InteractA is false

    ---your behaviours-----

    when actor collides or overlaps with (bottom actor)
    Change Att. InteractA to true

    ---your same behaviours----

    And in the bottom actor, its Rules/behaviours only work when InteractA is false

    Along those lines. Hope that's enough there to get you experimenting with the actors.

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

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well what do you want to happen exactly. I have actually had some success in some of that. in my Stacks Level select template the hardest thing I had to figure out was making touching the world icon not pass on through and load on of the unlocked level icons underneath. I have since found even better ways to accomplish that task. but they may not work for what you want.

    So we really need to know what your are trying to accomplish to offer you better help in this area.

    ___________________________________________________________________________________
    TEMPLATES AND PROJECT HELP BY TENRDRMER. CLICK HERE!!!

    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    I created a demo that might work. it's not perfect for all situations though

    in gs creator search: "Touch Only Top Actor Demo"

    hope it helps
  • VGXVGX Member Posts: 796
    tenrdrmer said:
    Well what do you want to happen exactly. I have actually had some success in some of that. in my Stacks Level select template the hardest thing I had to figure out was making touching the world icon not pass on through and load on of the unlocked level icons underneath. I have since found even better ways to accomplish that task. but they may not work for what you want.

    So we really need to know what your are trying to accomplish to offer you better help in this area.

    http://tinypic.com/r/s5gxhl/7

    Image and video hosting by TinyPic
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Well I would make a boolean game attribute called touchallowed

    and then in the black ball make a rule
    when touch is inside
    --change attribute game.touchallowed to false
    Otherwise
    --change attribute game.touchallowed to true

    and then add to your touch is pressed rule on the white ball add the condition game.touchallowed is true
  • RedlerTechRedlerTech Member Posts: 1,583
    I'll make a demo for it tonight
  • VGXVGX Member Posts: 796
    http://tinypic.com/r/2me34lt/7

    Video link to see my game. Sorry if the quality is poor. But you will get the idea of the game
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    So did you try my suggestion at all? or scitunes demo he already made?
Sign In or Register to comment.