-SOLVED-GotThere Module with latest version of AGS?

Started by Drawken, Sat 07/10/2023 11:55:48

Previous topic - Next topic

Drawken

Topic.
Topic with the module:
https://www.adventuregamestudio.co.uk/forums/beginners-technical-questions/eblock-enoblock-and-looking-at-an-object/msg477380/#quickreply_anchor

Can't even get this working with older version of AGS? (!GotThere()) always gives the error "Parse error in expr near 'GotThere'
"
In the main script, if I'm not mistaken, "ProcessClick" needs to be replaced with "Room.ProcessClick".
And to call the module in the room script "GoFace" became "WalkFace" in the latest 2019 version.
What else am I missing? Or perhaps the module needs updating? Would really like to get this working. Thanks.
Code: ags
// room script file
int GotThere;

function oHall_Door_01_Interact()
{
  if (!GotThere()) WalkFace(104, 131, eLeft);
  else 
  {
  //code
  }
}
<First time placing in a Sprite Jam. Neato.

Khris

Here's a later version and example code that works fine with 3.6.0:
https://www.adventuregamestudio.co.uk/forums/beginners-technical-questions/graphicalfunctional-questions-for-cmi-style-guiinventorymenus/msg636639852/#msg636639852

Code: ags
int GotThere;
is not required (and wrong, it's a function).
You just import the module, then call the WalkFace() function.

SMF spam blocked by CleanTalk