hit / miss tracking question

part12studiospart12studios Member Posts: 620
edited November -1 in Working with GS (Mac)
I have a game where a player taps things on the screen as they appear.. this awards points and the game continues. This is working great.

However if the player taps empty space around the object, it's a -1 life condition.. here is the problem i'm having. I need a nice clean way to indicate how i capture a miss condition. I know it has to be simple, but it seems like all of my approaches have been either unsuccessful or unacceptable

The way i've been trying is to have a "miss actor" cover the entire screen and set that actor graphic to go all the way back regarding stage layers. then the hope would be the spawn actors appear then on top of that.. but it seems that the actors don't stop the "click through"... it would be cool if i could just say.. it seems like there could be a global rule or something that says . 'if you click this... awesome.. but if you touch anything but that.. -1"

however it seems that tapping the spawn object also touches the miss trigger.. my hack (unacceptable, because miss audio then plays all the time) was to give +1 lives to each successful tap to counter the -1 the "miss actor"

I had some crazy idea of tying to maybe do some kind of boolean tracking, but in the expression editor i couldn't be sure i was doing it right.. i hade it in the expression editor as (game.ObjectBool)=true but maybe it needs to be "1" or something else? nothing seems to work.. i have a text field out on the stage that shows "false" and nothing i do seems to make it flip to "true". i assume it updates like my score and lives screens do.

Thank you for you time :)

Comments

  • part12studiospart12studios Member Posts: 620
    basically i'm just asking how how can i detect when someone touches a broad dynamic area such as a the entire background (imagine it's hot lava). because it seems like when i click a good target, the broad background area registers the touch also.. so it's like while i do touch the rocks (safe) the touch still touches the hot lava (ouch!)

    Thanks
    Caleb
Sign In or Register to comment.