hit detection question (click through issue)

part12studiospart12studios Member Posts: 620
edited November -1 in Working with GS (Mac)
I'm working on a game where you click an object that's moving.. if you miss clicking the object you click the black background.. pretty basic. -1 life if you miss. 0 lives, game over.

what i'm seeing is that my spawned actors coming on the screen, you click them and they register, but the sprite "hit box" on the lowest layer still triggers a hit condition for it as well.

what am I doing wrong so i can have a moving object on a "hot lava" background not also count when touching the spawned item on the upper layer.

Comments

  • part12studiospart12studios Member Posts: 620
    heeeeeeey ok yea that worked! Thank you sooooo much! one question:

    what was the point of the timer and .1 sec? is this a common trick used because perhaps without that .1 events get missed? my normal response to doing something like this would have been to just drop the behavior right in.

    Thanks T!
Sign In or Register to comment.