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.
Game with separate files tryout
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
-
- Prole
- Posts: 17
- Joined: Thu Nov 23, 2017 4:46 pm
Re: Game with separate files tryout
Sigh...
Fine, but if it doesn't work... I'll kiss Lua and LÖVE goodbye for good.
Re: Game with separate files tryout
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
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
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.
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.Sigh...
Fine, but if it doesn't work... I'll kiss Lua and LÖVE goodbye for good.
-
- Prole
- Posts: 17
- Joined: Thu Nov 23, 2017 4:46 pm
Re: Game with separate files tryout
I did as you said and I bet it has to be with speed variable.MadByte wrote: ↑Fri Dec 15, 2017 7:07 pmNot 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.
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.Sigh...
Fine, but if it doesn't work... I'll kiss Lua and LÖVE goodbye for good.
Re: Game with separate files tryout
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.
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.
-
- Prole
- Posts: 17
- Joined: Thu Nov 23, 2017 4:46 pm
Re: Game with separate files tryout
here's the file. It's out there.
Re: Game with separate files tryout
Wrong file name mate. It's square not moving xD
Ok I'm bad, I'm sorry xD
-
- Prole
- Posts: 17
- Joined: Thu Nov 23, 2017 4:46 pm
Re: Game with separate files tryout
Re: Game with separate files tryout
I can't. I'm posting from my phone. I'll answer tomorrow if no one else provides a fix in the meantime
Who is online
Users browsing this forum: No registered users and 0 guests