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

Topics - JoanMon

#1
- AGS Editor .NET (Build 3.5.1.11)
- Bass Template
-----------------------------------------------------------------------------------
Hello, I've added to the main AGS folder "libagsshell.so" and "ags_shell.dll".

I opened the game and activated "ags_shell.dll" pulgin.
"libagsshell.so" does not appear in the project tree.

I've created a button in the game startup GUI and inserted the following code:

Code: ags
function Button_OnClick(GUIControl *control, MouseButton button)
{
  if( System.OperatingSystem == eOSWindows ){
    ShellExecute("", "http://website.com", "");
  } else if( System.OperatingSystem == eOSLinux ){
    ShellExecute("", "", "xdg-open http://website.com");
  }
}


On Windows it works perfectly, but on Linux does not work.
Any suggestions as to what I might be doing wrong?
Thanks.
#2
Hi, I'm trying to make my character run with double click.
- AGS Editor .NET (Build 3.5.1.11)
- Bass Template
- Module: DoubleClick_1.0.0

I use this command line, but does not work correctly.
Any suggestions as to what I am doing wrong? Thanks.

In Global Script:
Code: ags
function on_mouse_click(MouseButton button) 
{
  if (DoubleClick.Event[eMouseLeft]) {
    // double-click code
    player.SetWalkSpeed(50, 50);
    Room.ProcessClick(mouse.x, mouse.y, mouse.Mode );
    } 
    else 
    {       
    player.SetWalkSpeed(50, 50);
    }
  if (eMouseLeft) {
    // single-click code
    player.SetWalkSpeed(15, 15);
    Room.ProcessClick(mouse.x, mouse.y, mouse.Mode );
    } 
    else 
    {
    player.SetWalkSpeed(15, 15);
    }
}


SMF spam blocked by CleanTalk