Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Chicky on Tue 10/06/2003 13:22:17

Title: Please Help - left and right click interface
Post by: Chicky on Tue 10/06/2003 13:22:17
Hi all    :)
i really need to know how to make an interface where there is a pop-up inventory at the bottom of the screen with inventor scrollers. Also i want it so that when you right click it looks at, and double left click is use? Also i want single left click to be walk.

Its a lot to ask but i really need to know, pleese

Any help pleese im begging ;D
Title: Re:Please Help - left and right click interface
Post by: on Tue 10/06/2003 19:30:10
Don't beg! grovel works, on fridays and every other sunday.......
as for your Q i dunno! you need a much more superior being than me ;)

woodz
i'm sure some one will help if they can, asap....
little tip...don't double post the same subject in two sections, they kinda don't like it ;)
Title: Re:Please Help - left and right click interface
Post by: Chicky on Tue 10/06/2003 19:46:17
Nooooooooooo, i got soo excited when i had a reply ahhhhhhhhhhhh (puts head thru wall), dang and i gota log off now :(

ohhh ohh ohhh GROVEL

pleeeese reply

sorry about the double post (hangs head in shame)  :-[
Title: Re:Please Help - left and right click interface
Post by: AJA on Tue 10/06/2003 20:53:51
For the GUI: You mean something like this: http://koti.mbnet.fi/dima/downloads/gui.zip (http://koti.mbnet.fi/dima/downloads/gui.zip)?

I don't know about the double clicking, but you can set the right and left clicks functions in the global script's on_mouse_click function.

function on_mouse_click(int button) {
 // called when a mouse button is clicked. button is either LEFT or RIGHT
 if (IsGamePaused() == 1) {
   // Game is paused, so do nothing (ie. don't allow mouse click)
 }
 else if (button==LEFT) {
   ProcessClick(mouse.x, mouse.y, MODE_WALK);
 }
 else if (button==RIGHT) {   // right-click, so cycle cursor
   ProcessClick(mouse.x, mouse.y, MODE_LOOK);
 }
}
Title: Re:Please Help - left and right click interface
Post by: Chicky on Tue 10/06/2003 21:11:55
Dang the zip file is too old :( But the script is a great help , i dont suppose there are any newer ace2game files with this gui are there :-\
Title: Re:Please Help - left and right click interface
Post by: AJA on Tue 10/06/2003 21:15:55
QuoteDang the zip file is too old

Too old? If you can't load it, make sure you have the latest version of AGS.
Title: Re:Please Help - left and right click interface
Post by: Chicky on Tue 10/06/2003 21:24:15
Sorry a'J'a, the problen is i cant D/L the latest version at the moment, Ahh well thanks for all the help. ;D

L8R
Title: Re:Please Help - left and right click interface
Post by: Chicky on Tue 10/06/2003 21:50:16
Thinking bout it isnt there a way in the interaction editor for a hotspot to make any click as interact? i will have to set it as walk to, then do the pick up animation or what ever. thats it (gives himself pat on back)  
Title: Re:Please Help - left and right click interface
Post by: Scummbuddy on Wed 11/06/2003 01:05:34
You double posted.  Continue in other thread.