Hit and Miss on touch

Does anyone have a way of coding that if I attempt to touch an actor and miss I lose a life, but if I touch that actor my lives remain the same?

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772
    I'm not in front of GS, but I believe you can check for touch inside and outside an actor, I think you could use that.
  • BenMakesGamesBenMakesGames Member Posts: 85
    ill try that now, thanks
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Use a magnitude to touch expression.
  • BenMakesGamesBenMakesGames Member Posts: 85
    ok, so ive tried that and it basically works. Except I have several of the same actor on that scene so it seems if i click inside of one actor still counts to clicking outside of the other actors
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    Yes that's why I said use a magnitude. When touch is x number of pixels from actor self position.
  • BenMakesGamesBenMakesGames Member Posts: 85
    I dont understand sorry.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Here you go:

Sign In or Register to comment.