Page 1 of 1

A problem with a set of tutorial code

Posted: Tue Feb 21, 2017 3:56 pm
by Ka7to
The tutorial in question: https://love2d.org/wiki/Tutorial:Baseline_2D_Platformer

I've been trying to run the whole code for the tutorial in question for a few hours now, tweaking the code back and forth to see which results I get, and it's simply not been compiling, instead presenting me with the error of:

"Syntax error: main.lua:8: '=' expected near 'platform'

I don't quite understand why this is happening and any help is appreciated.

Re: A problem with a set of tutorial code

Posted: Tue Feb 21, 2017 5:24 pm
by zorg
Hi and welcome to the forums!

Do post your own code (preferrably between [ code ] [ /code ] tags) and then we can help you further, since from the wiki's first code block, i don't see anything that would give back that specific error message.

Re: A problem with a set of tutorial code

Posted: Thu Feb 23, 2017 2:41 pm
by NickRock
I'm guessing that you were going to assign a value to a variable like platform.x = 0 and it looks like you forgot the "=" sign