So I'm just trying to get a hang of the ropes and such of AGS, figure out how to do certain things, how to program with it, etc etc; hopefully to try and make a Laura Bow style game--but I digress.
In quite a number of Sierra games, most of the time, they require you to stand NEXT to the object you're interacting with in order to take it or use it, etc. So I'm trying to set a provision that says basically...
"If [character] is standing next to object, then [text]. Otherwise, 'Don't you think you should stand a little closer?'" (hence the subject line)
What I have so far is a mess of me trying to figure out what anything really means, because I cannot wrap my brain around it. I set a hotspot around a door, and I want the game to check "is the character standing on top of that hotspot next to the door?" (If yes, then [text]--if not, then "don't you think..." yadda yadda).
Code: ags
I've been getting very overwhelmed looking through the index trying to figure out what would work. I honestly have no clue if I'm even thinking about it right at all or if my brain is just making stuff up with the limited knowledge I have.
Thank you
In quite a number of Sierra games, most of the time, they require you to stand NEXT to the object you're interacting with in order to take it or use it, etc. So I'm trying to set a provision that says basically...
"If [character] is standing next to object, then [text]. Otherwise, 'Don't you think you should stand a little closer?'" (hence the subject line)
What I have so far is a mess of me trying to figure out what anything really means, because I cannot wrap my brain around it. I set a hotspot around a door, and I want the game to check "is the character standing on top of that hotspot next to the door?" (If yes, then [text]--if not, then "don't you think..." yadda yadda).
function hDoor1_Tile_Stand()
{
hDoor1.Enabled = true;
}
function hDoor1_Interact()
{
if (hDoor1.Enabled = false):
{
Display("Don't you think you should stand a little closer?");
}
if (hDoor1.Enabled = true):
{
Display("You open the door.");
}
}
I've been getting very overwhelmed looking through the index trying to figure out what would work. I honestly have no clue if I'm even thinking about it right at all or if my brain is just making stuff up with the limited knowledge I have.
Thank you
