Hello.
I am making a game in AGS using the XALARCOST template.
For the most part things are going swimmingly, but I've run into a small issue.
I've been using hotspots on a PGN image rather than using each object in the room as an individual Sprite.
This has worked well! I have a fully working room (that leads to a hallway), and every object can be looked at (right click; its XALARCOST), and my character responds in kind.
However, an issue has arisen. Some objects (for example, a dresser in the room) fire the interact (left click) command no problem. Others (for example, a suitcase in the room) simply do not.
The walk to points for all objects work fine. The character walks right up to the object, but then does not say the assigned line of dialogue I've given them.
I set up a blocker at the beginning of the 'interact' command and it seems that this command is not even firing.
My code is very simple.
For example, with the suitcase, here is my code:
Code: ags
In this example, the line 'Six days of dirty laundry.' works just fine when right clicking.
The left click (interact), however, does not.
I hope someone can help.
This is my first time ever posting in the AGS forums, so I truly apologize if this is not in the appropriate spot.
Thank you all very much.
I am making a game in AGS using the XALARCOST template.
For the most part things are going swimmingly, but I've run into a small issue.
I've been using hotspots on a PGN image rather than using each object in the room as an individual Sprite.
This has worked well! I have a fully working room (that leads to a hallway), and every object can be looked at (right click; its XALARCOST), and my character responds in kind.
However, an issue has arisen. Some objects (for example, a dresser in the room) fire the interact (left click) command no problem. Others (for example, a suitcase in the room) simply do not.
The walk to points for all objects work fine. The character walks right up to the object, but then does not say the assigned line of dialogue I've given them.
I set up a blocker at the beginning of the 'interact' command and it seems that this command is not even firing.
My code is very simple.
For example, with the suitcase, here is my code:
//BEDROOM SUITCASE:
//Jessica looks at Suitcase
function hBedroomSuitcase_Look()
{
cJessica.Say("Six days of dirty laundry.");
}
//Jessica tries to interact with Suitcase (walks beside it)
function hBedroomSuitcase_Interact()
{
cJessica.Say("Ah! a suitcase. This code finally works now.");
}
In this example, the line 'Six days of dirty laundry.' works just fine when right clicking.
The left click (interact), however, does not.
I hope someone can help.
This is my first time ever posting in the AGS forums, so I truly apologize if this is not in the appropriate spot.
Thank you all very much.