Object parse error (from tutorial)

Started by hawkofrawk, Wed 24/04/2013 00:41:42

Previous topic - Next topic

hawkofrawk

Howdy, I downloaded AGS a few days ago and I've started work on my first little game.  I read and went through the manual but on step 4 (objects) i've got a problem.  I've been following the manual pretty spot on but for some reason I keep getting a " Error (line 17): PE04: parse error at 'oFoyerKey' " can someone tell me where I goofed? I've been following the manual pretty closely (changing the name of the key in every place the key is referenced as oKey so it shouldn't matter)


http://puu.sh/2FSbS.jpg properties
http://puu.sh/2FSdy.jpg event
http://puu.sh/2FSfU.png Room script
http://puu.sh/2FSgX.png Inventory key

Crimson Wizard

You have the line:
Code: ags

oFoyerKey.Visible-true;

It should be  "=true", not "-true".

hawkofrawk

[imgzoom]http://puu.sh/2FSRj.png[/imgzoom]

I swear I'll kill the man who took the screenshot

Crimson Wizard

Err.... what?
Now it is "false"...
Anyway, you need to use "=" operator to assign value to variable.

Khris

hawkofrawk  is talking about this screenshot from the tutorial :)


Crimson Wizard

#5
Quote from: Khris on Wed 24/04/2013 04:23:51
hawkofrawk  is talking about this screenshot from the tutorial :)

Oooh...  (wtf)
lol, yes, it may cause confusion.

Cerno

Quote from: hawkofrawk on Wed 24/04/2013 01:00:57
I swear I'll kill the man who took the screenshot

Wow, that escalated quickly ;)
123  Currently working on: Sibun - Shadow of the Septemplicon

SMF spam blocked by CleanTalk