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.
A problem with a set of tutorial code
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- zorg
- Party member
- Posts: 3468
- Joined: Thu Dec 13, 2012 2:55 pm
- Location: Absurdistan, Hungary
- Contact:
Re: A problem with a set of tutorial code
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.
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.
Me and my stuff True Neutral Aspirant. Why, yes, i do indeed enjoy sarcastically correcting others when they make the most blatant of spelling mistakes. No bullying or trolling the innocent tho.
Re: A problem with a set of tutorial code
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
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeooow!!
Who is online
Users browsing this forum: Ahrefs [Bot], Bing [Bot] and 3 guests