Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Fekix

#21
still the same :(

here's my on_mouse_click function:

#sectionstart on_mouse_click  // DO NOT EDIT OR REMOVE THIS LINE
function on_mouse_click(int button) {
 if (IsInterfaceEnabled() == 0 || IsGamePaused() == 1) return;
 else if (button==LEFT) {
   if (itemon == 1) {
     ProcessClick(mouse.x, mouse.y, 4);
     itemon = 0;
     SetLabelText(4, 0, "@OVERHOTSPOT@");
     }
   else ProcessClick(mouse.x, mouse.y, 0);
 }
 else if (button==RIGHT) {
   if (itemon == 1) {
     itemon = 0;
     SetLabelText(4, 0, "@OVERHOTSPOT@");
     }
   else set_actionmenu();
   }
 
}
#sectionend on_mouse_click  // DO NOT EDIT OR REMOVE THIS LINE
#22
the gui is pop-up modal. but no transparency and no background image.
#23
Alt-X works! It shows me that there is a problem in line 63 in my room script. i looked it up and its a while loop with wait command till the character move to the hotspot. Somehow AGS noticed the left click ON the GUI as a click on my hotspot which force my character to move. But the GUI is over the hotspot so i don't know why this happens. But the character will not move because game is paused because of the GUI is on and this means the game will stay in the while loop
#24
I've downloaded Beta 2 and i've noticed that sometime the game hang up when clicking on a gui (not on a button or label or something like this, i mean clicking in a blank gui area). I opened the console and noticed that the last commands before hanging up are:

Mouseclick over GUI X
Character X start moving (x,y)

I don't know if this error appears before beta 2 or if there is a problem with my script. Can someone try by clicking several times in a gui in his game?
#25
thank you both for your suggestions but i already solved my problem with the "on_event" function and it works fine :)
#26
Advanced Technical Forum / mouseclick in gui
Sun 07/03/2004 17:31:14
If i press and hold my right mouse button an actionmenu pop-ups where i can choose different interactions. However íf i right click over a GUI it don't pop up. I need this for my Inventory GUI. Does anyone know how to recognize the right click over a GUI to pop up a new GUI?
#27
Thank you very much.

That was the sulution for my problem :)
#28
I want to use the new function which allows to save the screenshot in savegames. It works fine but the screenshot shows my custom SaveGUI always on but my script turns off the SaveGUI while saving. If I load the savegame the SaveGUI is also OFF so i guess there's no problem with turning off the SaveGUI. To which time exactly is the screenshot taken when saving a game?
SMF spam blocked by CleanTalk