Page 3 of 4

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 6:58 pm
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.

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 7:00 pm
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.

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 7:03 pm
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

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 7:07 pm
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.

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 7:21 pm
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.

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 7:33 pm
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.

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 7:39 pm
by SynfigMaster91
here's the file. It's out there.
squaremoving.love
(792 Bytes) Downloaded 213 times

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 7:56 pm
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

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 7:59 pm
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.

Re: Game with separate files tryout

Posted: Fri Dec 15, 2017 8:10 pm
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