Tap Selecting overlapping actors selects both

RedCatRedCat Member Posts: 26
edited June 2012 in Working with GS (Mac)
Hi Guys,

I've looked at T-Shirt booth's great video about how to attach the mouse to overlapping actors: http://gshelper.com/?s=select+actor

But it really doesn't help with what I'd hope is a much simpler issue...

I have a ground actor which the user can tap on to move the player actor to the tapped position (waypoint), I also have HUD elements that need to be tapped on to Pause the game, trigger other stuff, etc.

Whenever I tap on one of the other HUD actors a waypoint is placed as well as the other event being triggered.

Any ideas on how to resolve this (non-sticky) overlap issue. I've already tried changing ID of actor required to make a valid tap on a timer, but this doesn't work.

Best Answer

  • tenrdrmertenrdrmer Posts: 9,934
    Accepted Answer
    Instead on the tap for the ground actor being in the ground actor make an invisible actor and place several instances of them in between the hud elements. Place all your touch way point rules in the invisible actor. Now your movement can only happen outside of the HUD buttons.

Answers

Sign In or Register to comment.