Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Gepard on Sun 20/12/2020 14:54:00

Title: Area I cant click - SOLVED
Post by: Gepard on Sun 20/12/2020 14:54:00
I have somewhat unusual problem with the AGS (version 3.3.5.11). Bottom right corner of the screen is unclickable. No matter what I do it doesnt react. My resolution is 800x600. The area that is inactive is not large, some 160 by 50 pixels, but it is getting in a way now. There used to be a Gui in that place but I've deleted it and now there is this dead area in every room, where I cant click. Help please :(
Title: Re: Area I cant click
Post by: Cassiebsg on Sun 20/12/2020 16:23:18
Seems to me that the GUI that you "deleted" is there there.
How exactly did you deleted it?
Title: Re: Area I cant click
Post by: Crimson Wizard on Sun 20/12/2020 16:48:27
Either there's still a transparent clickable GUI there, or your script literally tells to skip mouse clicks in that area. Double check every gui you have, if it's not gui then check what's in your on_mouse_click function(s).
Title: Re: Area I cant click
Post by: Khris on Sun 20/12/2020 17:57:31
Add this to your global script:
Code (ags) Select
function on_event(EventType event, int data) {
  if (event == eEventGUIMouseDown) {
    Display("Click on GUI #%d", data);
  }
}

Now click the dead area again.
Title: Re: Area I cant click
Post by: Gepard on Mon 21/12/2020 20:37:42
Thank you guys,

I was finally able to find what the problem was. I had another GUI with @OVERHOTSPOT@ label that kept returning to that position for some reason.

Sorry!