Game with separate files tryout

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.
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Game with separate files tryout

Post by xNick1 »

I'm sorry man, I don't really know how to help you.
Please consider following some tutorials.
Sheepolution has some good ones on his website, they helped me a little when I started around a year ago.
SynfigMaster91
Prole
Posts: 17
Joined: Thu Nov 23, 2017 4:46 pm

Re: Game with separate files tryout

Post by SynfigMaster91 »

xNick1 wrote: Fri Dec 15, 2017 6:58 pm I'm sorry man, I don't really know how to help you.
Please consider following some tutorials.
Sheepolution has some good ones on his website, they helped me a little when I started around a year ago.
Sigh...

Fine, but if it doesn't work... I'll kiss Lua and LÖVE goodbye for good.
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Game with separate files tryout

Post by xNick1 »

It took me 7 months before I could manage to start making my own game from scratch.
Still I have to ask for help sometimes cause of something which I don't know how it works.
All that backed up by the fact that I work as web developer and I code almost everyday since I was 16.
So no, you're not going to learn Lua and Love in a couple minutes.
And if you're a native English speaker you have a strong advantage over us non English speakers cause all the documentation is written in English

Ah, and it's not about Lua or Love.
They're instruments.
If you have no prior experience, unity or unreal aren't going to work either
User avatar
MadByte
Party member
Posts: 533
Joined: Fri May 03, 2013 6:42 pm
Location: Braunschweig, Germany

Re: Game with separate files tryout

Post by MadByte »

SynfigMaster91 wrote: Fri Dec 15, 2017 6:52 pm
MadByte wrote: Fri Dec 15, 2017 6:47 pm ...
I did as you said, but...

...
Not sure if he is trolling!?
No you didn't. My attached example is almost the same as your code, and it works. So try to unpack my .love file and look at the code, compare it to your code and find the problem. Also, the error handler tells you exactly where you need to look for your problem:
if it says "Syntax error: square.lua:11: unexpected symbol near '10'" then the square.lua 11 tells you WHERE you have to look (square.lua, line 11) and everything after the ":" tells you WHAT the problem is. All you need to do is check if there is a typo near a "10" in that line.
Sigh...

Fine, but if it doesn't work... I'll kiss Lua and LÖVE goodbye for good.
You can't really blame LÖVE or lua for mistakes you made in your code. Try to read some tutorials and you'll be fine.
SynfigMaster91
Prole
Posts: 17
Joined: Thu Nov 23, 2017 4:46 pm

Re: Game with separate files tryout

Post by SynfigMaster91 »

MadByte wrote: Fri Dec 15, 2017 7:07 pm
SynfigMaster91 wrote: Fri Dec 15, 2017 6:52 pm
MadByte wrote: Fri Dec 15, 2017 6:47 pm ...
I did as you said, but...

...
Not sure if he is trolling!?
No you didn't. My attached example is almost the same as your code, and it works. So try to unpack my .love file and look at the code, compare it to your code and find the problem. Also, the error handler tells you exactly where you need to look for your problem:
if it says "Syntax error: square.lua:11: unexpected symbol near '10'" then the square.lua 11 tells you WHERE you have to look (square.lua, line 11) and everything after the ":" tells you WHAT the problem is. All you need to do is check if there is a typo near a "10" in that line.
Sigh...

Fine, but if it doesn't work... I'll kiss Lua and LÖVE goodbye for good.
You can't really blame LÖVE or lua for mistakes you made in your code. Try to read some tutorials and you'll be fine.
I did as you said and I bet it has to be with speed variable.
User avatar
MadByte
Party member
Posts: 533
Joined: Fri May 03, 2013 6:42 pm
Location: Braunschweig, Germany

Re: Game with separate files tryout

Post by MadByte »

If you want, you can upload your own .love file. This would make it much easier for us to show
you where you made a mistake and how you can resolve it. Here is how you pack a .love file.
And to upload it click on "Full Editor & Preview" to reply and look for an "Attachments" tab underneath the text editor field.
SynfigMaster91
Prole
Posts: 17
Joined: Thu Nov 23, 2017 4:46 pm

Re: Game with separate files tryout

Post by SynfigMaster91 »

here's the file. It's out there.
squaremoving.love
(792 Bytes) Downloaded 196 times
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Game with separate files tryout

Post by xNick1 »

SynfigMaster91 wrote: Fri Dec 15, 2017 7:39 pm here's the file. It's out there.squaremoving.love

Wrong file name mate. It's square not moving xD
Ok I'm bad, I'm sorry xD
SynfigMaster91
Prole
Posts: 17
Joined: Thu Nov 23, 2017 4:46 pm

Re: Game with separate files tryout

Post by SynfigMaster91 »

xNick1 wrote: Fri Dec 15, 2017 7:56 pm
SynfigMaster91 wrote: Fri Dec 15, 2017 7:39 pm here's the file. It's out there.squaremoving.love

Wrong file name mate. It's square not moving xD
Ok I'm bad, I'm sorry xD
Please, check it out for me. I'm not in the mood right now.
User avatar
xNick1
Party member
Posts: 267
Joined: Wed Jun 15, 2016 8:27 am
Location: Rome, Italy

Re: Game with separate files tryout

Post by xNick1 »

I can't. I'm posting from my phone. I'll answer tomorrow if no one else provides a fix in the meantime
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], ausboss20001, Bing [Bot], Google [Bot] and 160 guests