Duck being shoot while behind water, WHY!! HELP!!

GLJ27GLJ27 Member Posts: 27
edited November -1 in Working with GS (Mac)
I am making a carnival duck shoot game. So I have a duck and set of waves. The duck moves across the screen behind the waves and there are parts of the waves that cover the ducks. So I'm shooting at a wave and the duck passes behind it and the duck gets destroyed. Im destroying the duck through the wave! I should only be able to destroy the duck when there is nothing in front of it! Does anybody know how to fix this?

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    No, unfortunately. Actors in GameSalad do not have a way to block clicks from going through and clicking everything behind them.
  • GLJ27GLJ27 Member Posts: 27
    So there is no way of fixing this?
  • RedlerTechRedlerTech Member Posts: 1,583
    yes,

    Create a self attribute called clickable, when it overlaps with water change to false, otherwise true.

    Then in the when touch is pressed rule make sure it's "ALL" & add the clickable must be true
  • GLJ27GLJ27 Member Posts: 27
    You're a genius! Thank you so much!!
  • RedlerTechRedlerTech Member Posts: 1,583
    No problem :D THANK YOU

    Matt
Sign In or Register to comment.