Guitar Hero and detecting when a note reaches the hot spot

Guy’s - I might be going about this the wrong way. You’re thoughts are welcomed.

I’m trying to detect when when two GUI Texture object collides. I’m doing this so that when collide or are over each other - should the player press button “A” something happens. I figure I need to use GUI Texture for this. Trying to do something similar to Guitar Hero with the notes coming down and you would tap the corresponding button when the note reaches the hot spot.

Am I to use GUI for this? Is there a simpler or better way?:smile:

Anybody? Ever since the forum’s been up - seems I get fewer responses. The old one had tons of people responding. Just an Ob

If the issue is what I think it is, then you will probably find it easier to calculate the time when a block should arrive and then check if the player presses the button within a short interval either side. If you do decide to use the position of the GUI elements, then I don’t think you necessarily need to check for overlap. You could define the hotspot as a pixel coordinate and then use Rect.Contains to see whether the GUI element’s rectangle is around that point.

@andeeee Excellent! Thanks