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 - JoanMon

#1
Thank you very much eri0o, with your code it works correctly.
Solved.
#2
Thank you very much Crimson Wizard, now the game compiles correctly and add "libags_shell.so" automatically to the 32 and 64 bit libraries, but it still doesn't work.

Maybe there is something wrong in the Linux code?

Code: ags
function JoanMonGames_OnClick(GUIControl *control, MouseButton button)
{
 aClick.Play();
 Wait(10);
  if( System.OperatingSystem == eOSWindows )
  {
  ShellExecute("", "https://joanmon-games.itch.io", "");
  }
  else if( System.OperatingSystem == eOSLinux ){
  ShellExecute("", "", "https://joanmon-games.itch.io");
  }
}
#3
eri0o, I've already put it there, I've tried to put it in that folder, but it doesn't work.



I have also tried to put it in the compilation folder but it doesn't work.
#4
Thanks for answering.
I add this "libagsshell.so" file in the Linux subfolder of the Editor's program folder, but it doesn't work.
#5
- 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.
#6
QuoteWhere did you put this?
In Global Script

The new code, works correctly.
Thank you very much, Khris.
Solved.
#7
Thanks Khris, but it does not work "ClaimEvent:No event to claim"

Edited:
I've removed "ClaimEvent"
I've added another "player.StopMoving();"
Inside the room works correctly, but when changing the room the character doesn't stop, it continues walking.
I solved it by adding "player.StopMoving();" in "room_AfterFadeIn", it works, but I don't know if it's the right way to do it.

Code: ags
  if (button != eMouseLeft) return;
  int speed = 15;
  player.StopMoving();
  if (DoubleClick.Event[eMouseLeft]) speed = 50;
  player.StopMoving();
  player.SetWalkSpeed(speed, speed);
  Room.ProcessClick(mouse.x, mouse.y, eModeWalkto);
#8
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