yukaccino
Member
Hello!
Probably the title sounds a bit confusing, I'm sorry. My trouble isn't with a specific code bugging, it's more like a logic problem that I'm struggling a bit. I'm sorry if this isn't the correct forum to post, but I don't think this fits in Game Design.
Right at the moment, if my mouse is over my GUI button, and below in the room is a character, the moment I click with my mouse both the button and the character will be selected.
Any tips on how to code it to not interact with instances in the room, when my mouse is over a certain region of the display?
Sorry for the mess here, I'm still remaking my HUD!
Not sure if it's worth mentioning, but all my GUI is drawn in a same Draw GUI event in the same object. I thought it was easier for me to do this.
Thanks!
Probably the title sounds a bit confusing, I'm sorry. My trouble isn't with a specific code bugging, it's more like a logic problem that I'm struggling a bit. I'm sorry if this isn't the correct forum to post, but I don't think this fits in Game Design.
Right at the moment, if my mouse is over my GUI button, and below in the room is a character, the moment I click with my mouse both the button and the character will be selected.
Any tips on how to code it to not interact with instances in the room, when my mouse is over a certain region of the display?
Sorry for the mess here, I'm still remaking my HUD!
Not sure if it's worth mentioning, but all my GUI is drawn in a same Draw GUI event in the same object. I thought it was easier for me to do this.
Thanks!
Last edited: