Dialog being canceled out by global variables?

Started by Brian925, Sun 24/12/2017 23:22:37

Previous topic - Next topic

Crimson Wizard

#20
Quote from: Brian925 on Tue 26/12/2017 19:47:02
I made a walk on hotspot that worked fine.
I made an interact hotspot that was linked to the character and it did nothing.

Hmm, could you elaborate what you mean by "walk on hotspot" and "interact hotspot that was linked to the character"?
Hotspots do not have "walk on" interaction.
Can it be you are painting walkable areas or regions instead of hotspots, or something like that?

doctorhibert

I don't know how much help this is gonna be, but if you're starting over the BASS template is significantly easier since you only have two types of interactions, maybe that'd be more up your alley

Brian925

#22
Quote from: Crimson Wizard on Tue 26/12/2017 20:34:52
Quote from: Brian925 on Tue 26/12/2017 19:47:02
I made a walk on hotspot that worked fine.
I made an interact hotspot that was linked to the character and it did nothing.

Hmm, could you elaborate what you mean by "walk on hotspot" and "interact hotspot that was linked to the character"?
Hotspots do not have "walk on" interaction.
Can it be you are painting walkable areas or regions instead of hotspots, or something like that?

Hotspots do have walk on interaction. Every single room in my game has walk on hot spots that when the character walks on them, the room changes.
For example, a code like this.
Code: ags

function hBobRoomToHall_WalkOn()
{
  cBob.ChangeRoom(2, 733, 420);
}

Crimson Wizard

#23
Quote from: Brian925 on Wed 27/12/2017 00:40:30
Hotspots do have walk on interaction.
Oh, right, my mistake, it is called "Stands on" in the event list.

Well, I have absolutely no idea at this point, maybe you could just upload your game project, since it is only made from default template?

Khris

Yes, please upload your game. I'll bet all my Bitcoins (0.00) that this is user error.

Kweepa

#25
Could it be you didn't 'fill' the hotspot with a solid colour?
Or perhaps the hotspot is behind another object that is consuming the click?
You could add this code to the room script:
Code: ags

function on_mouse_click(MouseButton button)
{
  Hotspot *h = Hotspot.GetAtScreenXY(mouse.x, mouse.y);
  if (h != null)
  {
    if (h.IsInteractionAvailable(eModeInteract))
    {
      Display("Hotspot %s has interact interaction.", h.Name);
    }
    else
    {
      Display("Hotspot %s has NO interact interaction.", h.Name);
    }
  }
  else
  {
    Display("No hotspot there.");
  }
  Object *ob = Object.GetAtScreenXY(mouse.x, mouse.y);
  if (ob != null)
  {
    Display("Object %s hiding hotspot.", ob.Name);
  }
  Character *c = Character.GetAtScreenXY(mouse.x, mouse.y);
  if (c != null)
  {
    Display("Character %s hiding hotspot.", c.Name);
  }
}

Still waiting for Purity of the Surf II

SMF spam blocked by CleanTalk