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

#1
Problem is in the subject. I don't know if it actually disappears or just somehow changes it's position, but maybe someone knows why it happens?

Here's my simple function:
Code: ags
function book1_OnClick(GUIControl *control, MouseButton button)
{
  if(book1.NormalGraphic == 0)
      book1.NormalGraphic = 128;
  else
      book1.NormalGraphic = 0;
}
#2
Hi. I'm trying to create hotspots/objects/characters highlighting system for my game using GUI and I have a question: is it possible to use same GUI in the multiple places at the same time? I probably already know the answer, but hopefully I'm wrong.

Thanks in advance
#3
So I was trying to combine VerbCoin and GotThere module into one BASS style project and I encountered a problem: VerbCoin doesn't show up when I click on hotspots. In GotThere module there is a on_mouse_click function
Code: ags

function on_mouse_click(MouseButton button) {
  if (button == eMouseLeft) {
    ClaimEvent();
    lt = GetLocationType(mouse.x, mouse.y);
    if (lt == eLocationNothing) {
      __arrived = true;
      ProcessClick(mouse.x, mouse.y, mouse.Mode);
    }
    else {
      __arrived = false;
      if (lt == eLocationHotspot) {
        Hotspot*h = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
        lid = h.ID;
      }
      else if (lt == eLocationObject) {
        Object*o = Object.GetAtScreenXY(mouse.x, mouse.y);
        lid = o.ID;
      }
      else if (lt == eLocationCharacter) {
        Character*c = Character.GetAtScreenXY(mouse.x, mouse.y);
        lid = c.ID;
      }
      mm = mouse.Mode;
      ProcessClick(mouse.x, mouse.y, mm);
    }
  }
}


If I comment third line or if I delete this module, then everyone works fine. That's odd, because a few days ago I used them both and it worked fine, but then I changed GotThere module into latest version and now it doesn't work properly. And yes, I tried changing it to older version, it didn't help. Is there a way to make everything work perfectly without completely changing VerbCoin and module scripts? Maybe someone had similar problems?
Thanks in advance
#4
I tried to use Khris's GotThere module, but it looks like I won't be able to understand it myself and I think that it is a little bit changed since latest mentions of this module in this forum. So here's my function:

Code: ags

function hGoLeft_Interact()
{
  if(!WalkFace(90, 660, eLeft))
  {
    player.ChangeRoom(2, 1320, 700);
  }
}


I'm just trying to change room when player reaches coordinates (90, 660), but when I click on hotspot, player moves to coordinates (mouse.x, mouse.y) and don't change room. Maybe I just use wrong function or just don't know how to use it correctly. As I understand, bool GotThere and function GoFace doesn't exist anymore. Hopefully, module's author will be able to help me
SMF spam blocked by CleanTalk