A problem with a set of tutorial code

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
Ka7to
Prole
Posts: 1
Joined: Tue Feb 21, 2017 3:48 pm

A problem with a set of tutorial code

Post 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.
User avatar
zorg
Party member
Posts: 3465
Joined: Thu Dec 13, 2012 2:55 pm
Location: Absurdistan, Hungary
Contact:

Re: A problem with a set of tutorial code

Post 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.
Me and my stuff :3True 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.
User avatar
NickRock
Citizen
Posts: 76
Joined: Thu Dec 25, 2014 9:33 pm
Location: Earth
Contact:

Re: A problem with a set of tutorial code

Post 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
Weeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeooow!!
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 11 guests