Parse Error Problem

Started by SuperSlothStudios, Tue 16/06/2015 22:24:57

Previous topic - Next topic

SuperSlothStudios

Hello my partner and I were trying to do the tutorial for AGS but we ran into a parse error. We followed the instructions exactly but we keep getting the same error. If anyone can help we would be extremely grateful.

Code: ags

function Okey_Interact()
{
  Okey.Visible - false;
  player.AddInventory(iKey);
  GiveScore(5);
}


The error is:
room1.asc(42): Error (line 42): PE04: parse error at 'Okey'

Crimson Wizard

This
Code: ags

Okey.Visible - false;


should be:
Code: ags

Okey.Visible = false;

SMF spam blocked by CleanTalk