Search found 12 matches
- Thu Dec 23, 2021 4:26 pm
- Forum: Support and Development
- Topic: Collision border problem within my game.
- Replies: 11
- Views: 5750
Re: Collision border problem within my game.
His block of code for movement has that function removed as well, can't believe I missed that... Bug fixing is tons of fun :sarcasm:
- Thu Dec 23, 2021 4:22 pm
- Forum: Support and Development
- Topic: Collision border problem within my game.
- Replies: 11
- Views: 5750
Re: Collision border problem within my game.
I've found the source here: https://github.com/games50/pong/blob/master/pong-7/main.lua#L105 The function isn't finished at that point; it keeps going. The end of the function is at line 175. Holy crap, I just fixed it by looking at this code... I removed a function that was not there in the code t...
- Thu Dec 23, 2021 3:32 pm
- Forum: Support and Development
- Topic: Collision border problem within my game.
- Replies: 11
- Views: 5750
Re: Collision border problem within my game.
His code uses spaces, your code uses tabs. Tabs are 8 columns; most editors allow you to change how they look like for you, and that causes a lot of pain because it may be different for everyone else. Configuring your editor to use spaces instead of tabs solves that problem. I suspect there's somet...
- Thu Dec 23, 2021 2:03 pm
- Forum: Support and Development
- Topic: Collision border problem within my game.
- Replies: 11
- Views: 5750
Re: Collision border problem within my game.
here are two more..
I also have a font being used that I can't attach so you might have to get a font somewhere in windows or wherever.. font.ttf is called in a line
I also have a font being used that I can't attach so you might have to get a font somewhere in windows or wherever.. font.ttf is called in a line
- Thu Dec 23, 2021 2:03 pm
- Forum: Support and Development
- Topic: Collision border problem within my game.
- Replies: 11
- Views: 5750
Re: Collision border problem within my game.
Trying to add my code via attachments.. one sec..
- Thu Dec 23, 2021 1:47 pm
- Forum: Support and Development
- Topic: Collision border problem within my game.
- Replies: 11
- Views: 5750
Re: Collision border problem within my game.
I'm seeing my ends look a bit spaced out on this code on here but his isn't, but on Sublime they aren't spaced out like that it's just like his. Edit: So, I commented out my code and then copied and pasted his code to my main.lua, same thing happens it asked for another end after the function under ...
- Thu Dec 23, 2021 1:43 pm
- Forum: Support and Development
- Topic: Collision border problem within my game.
- Replies: 11
- Views: 5750
Re: Collision border problem within my game.
It's hard to tell for sure without seeing all of the code. I can't test this solution either, but here's my guess based on what you've posted: It looks like an issue of code indentation. Don't add 'end' at your line 83. The description on line 79 says you need to alter dy in the case of a collision...
- Wed Dec 22, 2021 5:05 pm
- Forum: Support and Development
- Topic: Need help with an nil error please..
- Replies: 5
- Views: 3963
Re: Need help with an nil error please..
I have created a new topic for the other error on the forums.. Sorry about that..
- Wed Dec 22, 2021 5:05 pm
- Forum: Support and Development
- Topic: Collision border problem within my game.
- Replies: 11
- Views: 5750
Collision border problem within my game.
Alright on to another smaller problem.. The tutorial that I am following he has only 7 ends in this line of code but now when I try and run this code on LOVE it wants me to put another end after line 83, which would make this 8 Ends in my code.. Also, once I do put an End at line 83 to close off fun...
- Wed Dec 22, 2021 3:25 pm
- Forum: Support and Development
- Topic: Need help with an nil error please..
- Replies: 5
- Views: 3963
Re: Need help with an nil error please..
Alright on to another smaller problem.. The tutorial that I am following he has only 7 ends in this line of code but now when I try and run this code on LOVE it wants me to put another end after line 83 which is in bold, which would make this 8 Ends in my code.. Also, once I do put an End at line 83...